woocommerce_thankyou_order_id
Устарел с версии 6.4. Больше не поддерживается и может быть удален. Используйте
check_response_for_order
.Deprecated: 6.4 Use check_response_for_order instead.
Check Response for PDT, taking the order id from the request.
Использование
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
- -
Список изменений
Устарела с 6.4 | Use check_response_for_order instead. |
Где вызывается хук
woocommerce_thankyou_order_id
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 256
$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $order_id ) );