<namespace_prefixed>

The WooCommerce MailChimp namespace prefixed hook.

Description

do_action( '<namespace_prefixed>', (unknown) $subscribe_options, (unknown) $order_id ); 

Parameters (2)

0. $subscribe_options (unknown)
The subscribe options.
1. $order_id (unknown)
The order id.

Usage

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

Defined (6)

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

/includes/class-ss-wc-mailchimp-handler.php  
  1. do_action( $this->namespace_prefixed( 'before_subscribe' ), $subscribe_options, $order_id ); 
  1. do_action( $this->namespace_prefixed( 'after_subscribe' ), $subscribe_options, $order_id ); 
  1. do_action( $this->namespace_prefixed( 'subscription_failed' ), $email, array( 'list_id' => $list_id, 'order_id' => $order_id ) ); 
  1. do_action( $this->namespace_prefixed( 'subscription_success' ), $email, array( 'list_id' => $list_id, 'order_id' => $order_id ) ); 
  1. do_action( $this->namespace_prefixed( 'before_opt_in_checkbox' ) ); 
  1. do_action( $this->namespace_prefixed( 'after_opt_in_checkbox' ) );