wpsc_activated_subscription

The WP eCommerce wpsc activated subscription hook.

Description

do_action( 'wpsc_activated_subscription', (unknown) $cart_row_cart_item_id, (unknown) $instance ); 

Parameters (2)

0. $cart_row_cart_item_id (unknown)
The cart row cart item id.
1. $instance (unknown)
The this.

Usage

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

Defined (2)

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

/wpsc-merchants/paypal-standard.merchant.php  
  1. do_action('wpsc_activated_subscription', $cart_row['cart_item_id'], $this ); 
/wpsc-merchants/paypal-pro.merchant.php  
  1. do_action('wpsc_activated_subscription', $cart_row['cart_item_id'], $this );