/** * Constructor */ public function __construct() { parent::__construct(); add_filter('woocommerce_checkout_fields', array($this, 'add_checkout_field'), 20); add_action('woocommerce_checkout_update_order_meta', array($this, 'save_woocommerce_checkout_checkbox_value')); add_action('woocommerce_checkout_order_processed', array($this, 'subscribe_from_woocommerce_checkout')); }
/** * Constructor */ public function __construct() { parent::__construct(); add_action('edd_purchase_form_user_info_fields', array($this, 'output_checkbox')); add_action('edd_payment_meta', array($this, 'save_checkbox_value')); add_action('edd_complete_purchase', array($this, 'subscribe_from_edd'), 50); }
public function __construct() { parent::__construct(); // hooks for outputting the checkbox add_action('thesis_hook_after_comment_box', array($this, 'output_checkbox'), 10); add_action('comment_form', array($this, 'output_checkbox')); // hooks for checking if we should subscribe the commenter add_action('comment_post', array($this, 'subscribe_from_comment'), 40, 2); }
public function __construct() { parent::__construct(); add_action('signup_extra_fields', array($this, 'output_checkbox'), 20); add_action('signup_blogform', array($this, 'add_multisite_hidden_checkbox'), 20); add_action('wpmu_activate_blog', array($this, 'on_multisite_blog_signup'), 20, 5); add_action('wpmu_activate_user', array($this, 'on_multisite_user_signup'), 20, 3); add_filter('add_signup_meta', array($this, 'add_multisite_usermeta')); }
/** * Constructor */ public function __construct() { parent::__construct(); add_action('bbp_theme_after_topic_form_subscriptions', array($this, 'output_checkbox'), 10); add_action('bbp_theme_after_reply_form_subscription', array($this, 'output_checkbox'), 10); add_action('bbp_theme_anonymous_form_extras_bottom', array($this, 'output_checkbox'), 10); add_action('bbp_new_topic', array($this, 'subscribe_from_bbpress_new_topic'), 10, 4); add_action('bbp_new_reply', array($this, 'subscribe_from_bbpress_new_reply'), 10, 5); }
/** * Constructor */ public function __construct() { parent::__construct(); // hooks for outputting the checkbox add_filter('comment_form_submit_field', array($this, 'add_checkbox_before_submit_button'), 90); add_action('thesis_hook_after_comment_box', array($this, 'maybe_output_checkbox'), 90); add_action('comment_form', array($this, 'maybe_output_checkbox'), 90); // hooks for checking if we should subscribe the commenter add_action('comment_post', array($this, 'subscribe_from_comment'), 40, 2); }
/** * Outputs the checkbox for the comment form */ public function output_checkbox($hook = '') { return parent::output_checkbox('comment_form'); }
/** * Returns the number of subscribers on the selected lists (for the form context) * * @return int */ public function get_subscriber_count() { $mailchimp = new MC4WP_MailChimp(); $count = $mailchimp->get_subscriber_count($this->integration->get_lists()); return number_format($count); }
/** * @param MC4WP_Integration $integration * @return bool */ public function is_installed($integration) { return $integration->is_installed(); }
/** * Add default value for "position" setting * * @return array */ protected function get_default_options() { $defaults = parent::get_default_options(); $defaults['position'] = 'billing'; return $defaults; }
/** * @param MC4WP_Integration $integration * @param string $email * @param array $data * @param int $related_object_id * * @return false|int */ public function log_integration_request(MC4WP_Integration $integration, $email, $data, $related_object_id = 0) { return $this->add($email, $integration->get_lists(), $data, $integration->slug, $related_object_id, MC4WP_Request::create_from_globals()->get_referer()); }
public function __construct() { parent::__construct(); add_action('register_form', array($this, 'output_checkbox'), 20); add_action('user_register', array($this, 'subscribe_from_registration'), 90, 1); }
/** * @return array */ public function get_ui_elements() { return parent::get_ui_elements(); }
/** * Outputs the registration form checkbox */ public function output_checkbox($hook = '') { return parent::output_checkbox('registration_form'); }
public function output_checkbox($hook = '') { return parent::output_checkbox('bbpress_forms'); }
public function __construct() { parent::__construct(); add_action('bp_before_registration_submit_buttons', array($this, 'output_checkbox'), 20); add_action('bp_core_signup_user', array($this, 'subscribe_from_buddypress'), 10, 4); }
/** * @since 3.0 * @return array */ public function get_ui_elements() { return array_diff(parent::get_ui_elements(), array('enabled', 'implicit')); }
/** * @since 3.0 * @return array */ public function get_ui_elements() { return array_diff(parent::get_ui_elements(), array('enabled', 'implicit', 'precheck', 'css', 'label')); }
/** * Output sign-up checkbox for MultiSite registration form */ public function output_checkbox($hook = '') { return parent::output_checkbox('multsite_form'); }