<namespace_prefixed>

The WooCommerce MailChimp namespace prefixed hook.

Description

apply_filters( '<namespace_prefixed>', (unknown) $settings ); 

Parameters (1)

0. $settings (unknown)
The settings.

Usage

To run the hook, copy the example below.
  1. $settings = apply_filters( '{$namespace_prefixed}', $settings ); 
  2.  
  3. if ( !empty( $settings ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the <namespace_prefixed> callback 
  2. function filter_namespace_prefixed( $settings ) { 
  3. // make filter magic happen here... 
  4. return $settings
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$namespace_prefixed}", 'filter_namespace_prefixed', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$namespace_prefixed}", 'filter_namespace_prefixed', 10, 1 ); 

Defined (8)

The filter is defined in the following location(s).

/includes/class-ss-wc-settings-mailchimp.php  
  1. $settings = apply_filters( $this->namespace_prefixed( 'settings_general_after_interest_groups' ), $settings ); 
  1. $settings = apply_filters( $this->namespace_prefixed( 'settings_general' ), $settings ); 
  1. $settings = apply_filters( $this->namespace_prefixed( 'settings_troubleshooting' ), $settings ); 
/includes/class-ss-wc-mailchimp-handler.php  
  1. $interest_groups = apply_filters( $this->namespace_prefixed( 'subscribe_interest_groups' ), $interest_groups, $order_id, $email ); 
  1. $merge_tags = apply_filters( $this->namespace_prefixed( 'subscribe_merge_tags' ), $merge_tags, $order_id, $email ); 
  1. $options = apply_filters( $this->namespace_prefixed( 'subscribe_options' ), $subscribe_options, $order_id ); 
  1. $admin_email = apply_filters( $this->namespace_prefixed( 'admin_email'), $admin_email ); 
  1. echo apply_filters( $this->namespace_prefixed( 'opt_in_checkbox' ), '<p class="form-row woocommerce-mailchimp-opt-in"><label for="ss_wc_mailchimp_opt_in"><input type="checkbox" name="ss_wc_mailchimp_opt_in" id="ss_wc_mailchimp_opt_in" value="yes"' . ($this->sswcmc->opt_in_checkbox_default_status() == 'checked' ? ' checked="checked"' : '') . '/> ' . esc_html( $this->sswcmc->opt_in_label() ) . '</label></p>' . "\n", $this->sswcmc->opt_in_checkbox_default_status(), $this->sswcmc->opt_in_label() );