woocommerce_bacs_email_instructions_order_status
Filter the email instructions order status.
Использование
add_filter( 'woocommerce_bacs_email_instructions_order_status', 'wp_kama_woocommerce_bacs_email_instructions_order_status_filter', 10, 2 ); /** * Function for `woocommerce_bacs_email_instructions_order_status` filter-hook. * * @param string $terms The order status. * @param object $order The order object. * * @return string */ function wp_kama_woocommerce_bacs_email_instructions_order_status_filter( $terms, $order ){ // filter... return $terms; }
- $terms(строка)
- The order status.
- $order(объект)
- The order object.
Список изменений
С версии 7.4 | Введена. |
Где вызывается хук
woocommerce_bacs_email_instructions_order_status
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 288
if ( ! $sent_to_admin && 'bacs' === $order->get_payment_method() && $order->has_status( apply_filters( 'woocommerce_bacs_email_instructions_order_status', 'on-hold', $order ) ) ) {