woocommerce_thankyou_order_id filter-hookWC 1.0

Deprecated from version 6.4. It is no longer supported and can be removed in future releases. Use check_response_for_order instead.

Deprecated: 6.4 Use check_response_for_order instead.

Check Response for PDT, taking the order id from the request.

Usage

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
-

Changelog

Deprecated since 6.4 Use check_response_for_order instead.

Where the hook is called

WC_Gateway_Paypal_PDT_Handler::check_response()
woocommerce_thankyou_order_id
WC_Shortcode_Checkout::order_received()
woocommerce_thankyou_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/includes/shortcodes/class-wc-shortcode-checkout.php 253
$order_id  = apply_filters( 'woocommerce_thankyou_order_id', absint( $order_id ) );

Where the hook is used in WooCommerce

Usage not found.