woocommerce_thankyou_order_key

woocommerce_thankyou_order_key

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_thankyou_order_key') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-checkout.php line 271
    		$order = false;
    
    		// Get the order.
    		$order_id  = apply_filters( 'woocommerce_thankyou_order_id', absint( $order_id ) );
    		$order_key = apply_filters( 'woocommerce_thankyou_order_key', empty( $_GET['key'] ) ? '' : wc_clean( wp_unslash( $_GET['key'] ) ) ); // WPCS: input var ok, CSRF ok.
    
    		if ( $order_id > 0 ) {
    			$order = wc_get_order( $order_id );
    
    			if ( ( ! $order instanceof WC_Order ) || ! hash_equals( $order->get_order_key(), $order_key ) ) {
    				$order = false;