woocommerce_permission_list хук-фильтр . WC 1.0
Get customer download permissions from the database.
Использование
add_filter( 'woocommerce_permission_list', 'filter_function_name_7691', 10, 2 ); function filter_function_name_7691( $customer_id, $customer_id ){ // filter... return $customer_id; }
- $customer_id(число)
- Customer/User ID.
- $customer_id
- -
Где вызывается хук
woocommerce_permission_list
woocommerce/includes/wc-user-functions.php 564
return apply_filters( 'woocommerce_permission_list', $data_store->get_downloads_for_customer( $customer_id ), $customer_id );