woocommerce_order_cancelled_notice
Использование
add_filter( 'woocommerce_order_cancelled_notice', 'wp_kama_woocommerce_order_cancelled_notice_filter' ); /** * Function for `woocommerce_order_cancelled_notice` filter-hook. * * @param $__ * * @return */ function wp_kama_woocommerce_order_cancelled_notice_filter( $__ ){ // filter... return $__; }
- $__
- -
Где вызывается хук
woocommerce_order_cancelled_notice
woocommerce/includes/class-wc-form-handler.php 766
wc_add_notice( apply_filters( 'woocommerce_order_cancelled_notice', __( 'Your order was cancelled.', 'woocommerce' ) ), apply_filters( 'woocommerce_order_cancelled_notice_type', 'notice' ) );