(old_hook)
Fire off a legacy hook with it's args.
Usage
add_filter( '(old_hook)', 'wp_kama_old_hook_filter' ); /** * Function for `(old_hook)` filter-hook. * * @param string $old_hook Old hook name. * * @return string */ function wp_kama_old_hook_filter( $old_hook ){ // filter... return $old_hook; }
- $old_hook(string)
- Old hook name.
Where the hook is called
(old_hook)
(old_hook)
woocommerce/includes/class-wc-deprecated-filter-hooks.php 146
return apply_filters_ref_array( $old_hook, $new_callback_args );
woocommerce/includes/class-wc-deprecated-action-hooks.php 127
do_action( $old_hook, $order_id, $item_id, $item );
woocommerce/includes/class-wc-deprecated-action-hooks.php 135
do_action( $old_hook, $order_id, $item_id, $item->get_code(), $item->get_discount(), $item->get_discount_tax() );
woocommerce/includes/class-wc-deprecated-action-hooks.php 143
do_action( $old_hook, $order_id, $item_id, $item->get_rate_id(), $item->get_tax_total(), $item->get_shipping_tax_total() );
woocommerce/includes/class-wc-deprecated-action-hooks.php 151
do_action( $old_hook, $order_id, $item_id, $item->legacy_package_key );
woocommerce/includes/class-wc-deprecated-action-hooks.php 159
do_action( $old_hook, $item_id, $item->legacy_values, $item->legacy_cart_item_key );
woocommerce/includes/class-wc-deprecated-action-hooks.php 167
do_action( $old_hook, $order_id, $item_id, $item->legacy_fee, $item->legacy_fee_key );
woocommerce/includes/class-wc-deprecated-action-hooks.php 175
do_action( $old_hook, $order_id, $item_id, $item, $item->get_product() );
woocommerce/includes/class-wc-deprecated-action-hooks.php 179
do_action_ref_array( $old_hook, $new_callback_args );