'Server informations(php, mysql, server, WordPress versions)', 'plugins_list' => 'Plugins List', 'active_themes' => 'Active Themes', 'site_info' => 'Site URL, Name, Language, Locale', 'admin_info' => 'Your name and email address' ); private $deactivation_reasons = array( 'not_using' => 'I am no longer using the plugin', 'found_better' => 'I found a better plugin', 'temporary_deactive' => 'It\'s a temporary deactivation', 'not_working' => 'The plugin is not working as expected', 'too_complex' => 'The plugin is too complex to use', 'other' => 'Other' ); public static function IDENTIFIER(): string { return 'insights'; } /** * Register the hoks and filters * * @return void */ public function register(): void { add_action('admin_notices', array($this, 'show_optin_notice')); add_filter( 'plugin_action_links_' . $this->plugin_base, array( $this, 'customize_deactivate_link' ) ); add_action( 'wp_ajax_' . $this->plugin_prefix . '_insights_optin', array($this, 'handle_optin')); add_action( 'wp_ajax_' . $this->plugin_prefix . '_insights_optout', array($this, 'handle_optout')); add_action('admin_footer', array($this, 'add_deactivation_modal')); add_action('wp_ajax_' . $this->plugin_prefix . '_insights_deactivate', array($this, 'handle_deactivation')); add_action( $this->plugin_prefix . '_insights_send_schedule', array($this, 'send_insights_data') ); register_activation_hook( $this->plugin_file, array($this, 'plugin_activated') ); register_deactivation_hook( $this->plugin_file, array($this, 'clear_schedule_insights_data') ); } // Show optin notice public function show_optin_notice() { if ( ! $this->should_show_notice() ) { return; } ?>
plugin_name ) ); ?>
plugin_name ), wp_kses_post( __( 'what we collect', 'advanced-custom-order-status-for-woocommerce' ) ) ); ?>