<action>

The WP eCommerce action hook.

Description

do_action( '<action>', (unknown) $meta_key, (unknown) $visitor_id ); 

Parameters (2)

0. $meta_key (unknown)
The meta key.
1. $visitor_id (unknown)
The visitor id.

Usage

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

Defined (4)

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

/wpsc-includes/wpsc-meta-visitor.php  
  1. do_action( $action, $meta_key, $visitor_id ); 
  1. do_action( $action, $meta_key, $visitor_id ); 
  1. do_action( $action, $meta_value, $meta_key, $visitor_id ); 
  1. do_action( $action, $meta_value, $meta_key, $visitor_id );