wc_mailchimp_casl_subscribed

The WooCommerce MailChimp CASL wc mailchimp casl subscribed hook.

Description

do_action( 'wc_mailchimp_casl_subscribed', (string) $var ); 

Parameters (1)

0. $var (string) => ''
''

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wc_mailchimp_casl_subscribed', $var ); 
The following example is for adding a hook callback.
  1. // define the wc_mailchimp_casl_subscribed callback 
  2. function action_wc_mailchimp_casl_subscribed( $var ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wc_mailchimp_casl_subscribed', 'action_wc_mailchimp_casl_subscribed', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wc_mailchimp_casl_subscribed', 'action_wc_mailchimp_casl_subscribed', 10, 1 ); 

Defined (5)

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

/woocommerce-mailchimp-casl.php  
  1. do_action( 'wc_mailchimp_casl_subscribed', '' ); 
  1. do_action( 'wc_mailchimp_casl_subscribed', $subscriber_email ); 
  1. do_action( 'wc_mailchimp_casl_subscribed', $subscriber_email ); 
  1. do_action( 'wc_mailchimp_casl_subscribed', $subscriber_email ); 
/classes/class-mc-casl.php  
  1. do_action( 'wc_mailchimp_casl_subscribed', $email );