woocommerce_customer_email_verification_should_show_prompt хук-фильтрWC 11.1.0

Filter whether to show the verification prompt for an unverified user.

Использование

add_filter( 'woocommerce_customer_email_verification_should_show_prompt', 'wp_kama_woocommerce_customer_email_verification_should_show_prompt_filter', 10, 2 );

/**
 * Function for `woocommerce_customer_email_verification_should_show_prompt` filter-hook.
 * 
 * @param bool $should_show Whether to show the prompt, before this filter runs.
 * @param int  $user_id     The WordPress user ID of the customer.
 *
 * @return bool
 */
function wp_kama_woocommerce_customer_email_verification_should_show_prompt_filter( $should_show, $user_id ){
	// filter...
	return $should_show;
}
$should_show(true|false)
Whether to show the prompt, before this filter runs.
$user_id(int)
The WordPress user ID of the customer.

Список изменений

С версии 11.1.0 Введена.

Где вызывается хук

VerificationController::should_show_prompt()
woocommerce_customer_email_verification_should_show_prompt
woocommerce/src/Internal/CustomerEmailVerification/VerificationController.php 244
return (bool) apply_filters( 'woocommerce_customer_email_verification_should_show_prompt', $should_show, $user_id );

Где используется хук в WooCommerce

Использование не найдено.