/** * Load the plugin and start the magic! */ function choobs_wp_mailchimp_start() { require_once plugin_dir_path(__FILE__) . 'class/choobs-wp-mailchimp.php'; $wpmailchimp = new choobs_wp_mailchimp(); $wpmailchimp->run(); }
public function __construct() { $this->version = choobs_wp_mailchimp::getStaticVersion(); $this->plugin_slug = choobs_wp_mailchimp::getStaticPluginSlug(); parent::__construct('choobs_wp_mailchimp_widget', __('Mailchimp Subscribe', $this->plugin_slug), array('description' => __('Widget to display Mailchimp subscribe form', $this->plugin_slug))); }
public static function setStaticPluginSlug($plugin_slug) { self::$static_plugin_slug = $plugin_slug; }