woocommerce_order_received_verify_known_shoppers filter-hookWC 8.4.0

Indicates if known (non-guest) shoppers need to be logged in before we let them access the order received page.

Usage

add_filter( 'woocommerce_order_received_verify_known_shoppers', 'wp_kama_woocommerce_order_received_verify_known_shoppers_filter' );

/**
 * Function for `woocommerce_order_received_verify_known_shoppers` filter-hook.
 * 
 * @param bool $verify_known_shoppers If verification is required.
 *
 * @return bool
 */
function wp_kama_woocommerce_order_received_verify_known_shoppers_filter( $verify_known_shoppers ){

	// filter...
	return $verify_known_shoppers;
}
$verify_known_shoppers(true|false)
If verification is required.

Changelog

Since 8.4.0 Introduced.

Where the hook is called

WC_Shortcode_Checkout::order_received()
woocommerce_order_received_verify_known_shoppers
woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php 310
$verify_known_shoppers = apply_filters( 'woocommerce_order_received_verify_known_shoppers', true );

Where the hook is used in WooCommerce

Usage not found.