Automattic\WooCommerce\Internal\CustomerEmailVerification
EmailVerificationService::clear_verification
Clear the email-verification status for the given user.
Removes both the verified-email meta and any pending verification key, effectively resetting the user to an unverified state.
Метод класса: EmailVerificationService{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$EmailVerificationService = new EmailVerificationService(); $EmailVerificationService->clear_verification( $user_id ): void;
- $user_id(int) (обязательный)
- WordPress user ID.
Список изменений
| С версии 11.0.0 | Введена. |
Код EmailVerificationService::clear_verification() EmailVerificationService::clear verification WC 11.0.1
public function clear_verification( int $user_id ): void {
Users::delete_site_user_meta( $user_id, self::VERIFIED_META );
Users::delete_site_user_meta( $user_id, self::KEY_META );
}