Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf7ee6b86e |
@@ -22,12 +22,17 @@ class SitiWebUpdater {
|
|||||||
|
|
||||||
$this->file = $file;
|
$this->file = $file;
|
||||||
|
|
||||||
|
$this->set_plugin_properties();
|
||||||
add_action( 'admin_init', array( $this, 'set_plugin_properties' ) );
|
add_action( 'admin_init', array( $this, 'set_plugin_properties' ) );
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function set_plugin_properties() {
|
public function set_plugin_properties() {
|
||||||
|
if ( ! function_exists( 'get_plugin_data' ) ) {
|
||||||
|
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||||
|
}
|
||||||
|
|
||||||
$this->plugin = get_plugin_data( $this->file );
|
$this->plugin = get_plugin_data( $this->file );
|
||||||
$this->basename = plugin_basename( $this->file );
|
$this->basename = plugin_basename( $this->file );
|
||||||
$this->active = is_plugin_active( $this->basename );
|
$this->active = is_plugin_active( $this->basename );
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: SitiAI Product Teksten
|
* Plugin Name: SitiAI Product Teksten
|
||||||
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
|
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
|
||||||
* Version: 1.2.1
|
* Version: 1.2.2
|
||||||
* Author: SitiAI
|
* Author: SitiAI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user