(hook_prefix)backorders
Usage
add_filter( '(hook_prefix)backorders', 'wp_kama_hook_prefixbackorders_filter', 10, 2 ); /** * Function for `(hook_prefix)backorders` filter-hook. * * @param $parent_data_backorders * @param $that * * @return */ function wp_kama_hook_prefixbackorders_filter( $parent_data_backorders, $that ){ // filter... return $parent_data_backorders; }
- $parent_data_backorders
- -
- $that
- -
Where the hook is called
(hook_prefix)backorders
woocommerce/includes/class-wc-product-variation.php 356
$value = apply_filters( $this->get_hook_prefix() . 'backorders', $this->parent_data['backorders'], $this );