edd_after_set_cart_item_quantity

The Easy Digital Downloads edd after set cart item quantity hook.

Description

do_action( 'edd_after_set_cart_item_quantity', (unknown) $download_id, (unknown) $quantity, (unknown) $options, (unknown) $this_contents ); 

Parameters (4)

0. $download_id (unknown)
The download id.
1. $quantity (unknown)
The quantity.
2. $options (unknown)
The options.
3. $this_contents (unknown)
The this contents.

Usage

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

Defined (1)

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

/includes/cart/class-edd-cart.php  
  1. do_action( 'edd_after_set_cart_item_quantity', $download_id, $quantity, $options, $this->contents );