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

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

add_filter( 'woocommerce_thankyou_order_id', 'wp_kama_woocommerce_thankyou_order_id_filter' );

/**
 * Function for `woocommerce_thankyou_order_id` filter-hook.
 * 
 * @param  $absint 
 *
 * @return 
 */
function wp_kama_woocommerce_thankyou_order_id_filter( $absint ){

	// filter...
	return $absint;
}
$absint
-

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

WC_Shortcode_Checkout::order_received()
woocommerce_thankyou_order_id
WC_Gateway_Paypal_PDT_Handler::check_response()
woocommerce_thankyou_order_id
woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php 270
$order_id  = apply_filters( 'woocommerce_thankyou_order_id', absint( $order_id ) );
woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php 106
$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp->query_vars['order-received'] ) );

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

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