woocommerce_permission_list
Usage
add_filter( 'woocommerce_permission_list', 'wp_kama_woocommerce_permission_list_filter', 10, 2 );
/**
* Function for `woocommerce_permission_list` filter-hook.
*
* @param $data_store_downloads_for_customer
* @param $customer_id
*
* @return
*/
function wp_kama_woocommerce_permission_list_filter( $data_store_downloads_for_customer, $customer_id ){
// filter...
return $data_store_downloads_for_customer;
}
- $data_store_downloads_for_customer
- -
- $customer_id
- -
Where the hook is called
woocommerce_permission_list
woocommerce/includes/wc-user-functions.php 746
return apply_filters( 'woocommerce_permission_list', $data_store->get_downloads_for_customer( $customer_id ), $customer_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment