woocommerce_delete_inactive_account_roles
Использование
add_filter( 'woocommerce_delete_inactive_account_roles', 'wp_kama_woocommerce_delete_inactive_account_roles_filter' ); /** * Function for `woocommerce_delete_inactive_account_roles` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_delete_inactive_account_roles_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_delete_inactive_account_roles
woocommerce/includes/class-wc-privacy.php 351-357
'role__in' => apply_filters( 'woocommerce_delete_inactive_account_roles', array( 'Customer', 'Subscriber', ) ),