woocommerce_screen_ids
phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment
Использование
add_filter( 'woocommerce_screen_ids', 'wp_kama_woocommerce_screen_ids_filter' ); /** * Function for `woocommerce_screen_ids` filter-hook. * * @param $screen_ids * * @return */ function wp_kama_woocommerce_screen_ids_filter( $screen_ids ){ // filter... return $screen_ids; }
- $screen_ids
- -
Где вызывается хук
woocommerce_screen_ids
woocommerce/includes/admin/wc-admin-functions.php 60
return apply_filters( 'woocommerce_screen_ids', $screen_ids );