コード例 #1
0
/**
 * 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();
}
コード例 #2
0
 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)));
 }
コード例 #3
0
 public static function setStaticPluginSlug($plugin_slug)
 {
     self::$static_plugin_slug = $plugin_slug;
 }