woocommerce_permission_list

The WooCommerce woocommerce permission list hook.

Description

apply_filters( 'woocommerce_permission_list', (unknown) $data_store_get_downloads_for_customer_customer_id, (unknown) $customer_id ); 

Parameters (2)

0. $data_store_get_downloads_for_customer_customer_id (unknown)
The data store get downloads for customer customer id.
1. $customer_id (unknown)
The customer id.

Usage

To run the hook, copy the example below.
  1. $data_store_get_downloads_for_customer_customer_id = apply_filters( 'woocommerce_permission_list', $data_store_get_downloads_for_customer_customer_id, $customer_id ); 
  2.  
  3. if ( !empty( $data_store_get_downloads_for_customer_customer_id ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_permission_list callback 
  2. function filter_woocommerce_permission_list( $data_store_get_downloads_for_customer_customer_id, $customer_id ) { 
  3. // make filter magic happen here... 
  4. return $data_store_get_downloads_for_customer_customer_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_permission_list', 'filter_woocommerce_permission_list', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_permission_list', 'filter_woocommerce_permission_list', 10, 2 ); 

Defined (1)

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

/includes/wc-user-functions.php  
  1. return apply_filters( 'woocommerce_permission_list', $data_store->get_downloads_for_customer( $customer_id ), $customer_id );