(hook_prefix)(key)
Использование
add_filter( '(hook_prefix)(key)', 'wp_kama_hook_prefixkey_filter', 10, 2 ); /** * Function for `(hook_prefix)(key)` filter-hook. * * @param $value * @param $that * * @return */ function wp_kama_hook_prefixkey_filter( $value, $that ){ // filter... return $value; }
- $value
- -
- $that
- -
Где вызывается хук
(hook_prefix)(key)
woocommerce/includes/abstracts/abstract-wc-data.php 380
$value = apply_filters( $this->get_hook_prefix() . $key, $value, $this );