woocommerce_ajax_revoke_access_to_product_download

The WooCommerce woocommerce ajax revoke access to product download hook.

Description

do_action( 'woocommerce_ajax_revoke_access_to_product_download', (unknown) $download_id, (unknown) $product_id, (unknown) $order_id, (unknown) $permission_id ); 

Parameters (4)

0. $download_id (unknown)
The download id.
1. $product_id (unknown)
The product id.
2. $order_id (unknown)
The order id.
3. $permission_id (unknown)
The permission id.

Usage

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

Defined (1)

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

/includes/class-wc-ajax.php  
  1. do_action( 'woocommerce_ajax_revoke_access_to_product_download', $download_id, $product_id, $order_id, $permission_id );