woocommerce_thankyou_order_received_text хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_thankyou_order_received_text', 'wp_kama_woocommerce_thankyou_order_received_text_filter', 10, 2 );

/**
 * Function for `woocommerce_thankyou_order_received_text` filter-hook.
 * 
 * @param  $esc_html__ 
 * @param  $order      
 *
 * @return 
 */
function wp_kama_woocommerce_thankyou_order_received_text_filter( $esc_html__, $order ){

	// filter...
	return $esc_html__;
}
$esc_html__
-
$order
-

Где вызывается хук

В файле: /templates/checkout/thankyou.php
woocommerce_thankyou_order_received_text
woocommerce/templates/checkout/thankyou.php 42
<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
woocommerce/templates/checkout/thankyou.php 84
<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>

Где используется хук в WooCommerce

woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 93
add_filter( 'woocommerce_thankyou_order_received_text', array( $this, 'order_received_text' ), 10, 2 );