public function __construct() { add_action('load-post.php', array($this, 'doifd_post_meta_boxes_setup')); add_action('load-post-new.php', array($this, 'doifd_post_meta_boxes_setup')); $plugin = DOIFD::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); }
public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
public function __construct($attr = array(), $content = array()) { parent::__construct(); $this->verification = $this->getVerification(); $this->data = $this->getUserData(); $this->fileExists = $this->file_exists(); $this->attr = $attr; $this->content = $content; $this->buttonText = $this->getButtonText(); }
public function __construct() { add_action('init', array($this, 'create_download_post_type')); add_action('init', array($this, 'register_download_taxonomy')); add_action('manage_doifd_download_posts_custom_column', array($this, 'download_custom_columns')); add_filter("manage_edit-doifd_download_columns", array($this, "download_edit_columns")); add_filter('post_updated_messages', array($this, 'doifd_post_updated_messages')); $plugin = DOIFD::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); }
public function __construct($params) { parent::__construct(); if (empty($params) || !is_array($params)) { throw new Exception("Invalid data!"); } $this->data = $params; $this->ver = $this->ver(); $this->download_id = $this->download_id(); }
public function __construct($params) { parent::__construct(); if (empty($params) || !is_array($params)) { throw new Exception("Invalid data!"); } $this->data = $params; $this->download_id = $this->getDownloadID(); $this->name = $this->getName(); $this->email = $this->getEmail(); $this->duplicate_email = $this->getIsDuplicateEmail(); }
public function __construct($attr = array(), $content = array(), $msg = null) { parent::__construct(); $this->attr = $attr; $this->download_id = $this->getDownloadID(); $this->data = $this->getDownloadInfo(); $this->fileExists = $this->file_exists(); $this->promoLink = $this->getPromoLink(); $this->headerText = $this->getHeaderText(); $this->buttonText = $this->getButtonText(); $this->nonce = wp_create_nonce('doifd-subscriber-registration-nonce'); $this->privacyPolicy = $this->getPrivacyPolicy(); $this->msg = $msg; }
public function __construct() { parent::__construct(); add_action('wp_head', array($this, 'add_css_to_head')); }
public function __construct() { parent::__construct(); add_action('admin_init', array($this, 'doifd_admin_resend_verification_email')); }
public function __construct() { parent::__construct(); }