wpsc_activate_subscription

The WP eCommerce wpsc activate subscription hook.

Description

do_action( 'wpsc_activate_subscription', (unknown) $cart_row_cart_item_id, (unknown) $this_paypal_ipn_values_subscr_id ); 

Parameters (2)

0. $cart_row_cart_item_id (unknown)
The cart row cart item id.
1. $this_paypal_ipn_values_subscr_id (unknown)
The this paypal ipn values subscr id.

Usage

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

Defined (2)

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

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