woocommerce_order_received_verify_known_shoppers

woocommerce_order_received_verify_known_shoppers

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_order_received_verify_known_shoppers') is found 2 times:

  • /includes/shortcodes/class-wc-shortcode-checkout.php line 310
    		 * @param bool $verify_known_shoppers If verification is required.
    		 *
    		 * @since 8.4.0
    		 */
    		$verify_known_shoppers = apply_filters( 'woocommerce_order_received_verify_known_shoppers', true );
    		$order_customer_id     = $order->get_customer_id();
    
    		// For non-guest orders, require the user to be logged in before showing this page.
    		if ( $verify_known_shoppers && $order_customer_id && get_current_user_id() !== $order_customer_id ) {
    			wc_get_template( 'checkout/order-received.php', array( 'order' => false ) );
    			wc_print_notice( esc_html__( 'Please log in to your account to view this order.', 'woocommerce' ), 'notice' );
    
  • /src/Blocks/BlockTypes/OrderConfirmation/AbstractOrderConfirmationBlock.php line 124
    			 * @param bool $verify_known_shoppers If verification is required.
    			 *
    			 * @since 8.4.0
    			 */
    			$verify_known_shoppers = apply_filters( 'woocommerce_order_received_verify_known_shoppers', true );
    
    			// If verification for known shoppers is disabled, we can show the order details.
    			if ( ! $verify_known_shoppers ) {
    				return 'full';
    			}