WC_Shortcode_My_Account::is_password_reset_bridge_handle │ public static │ WC 11.2.0

Check whether a value has the shape of a password-reset bridge handle.

Метод класса: WC_Shortcode_My_Account{}

Хуков нет.

Возвращает

bool. Whether the value is a well-formed handle.

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

$result = WC_Shortcode_My_Account::is_password_reset_bridge_handle( $handle );
$handle(разное) (обязательный)
Candidate handle.

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

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

Код WC_Shortcode_My_Account::is_password_reset_bridge_handle() WC 11.3.0

public static function is_password_reset_bridge_handle( $handle ) {
	return is_string( $handle )
		&& 1 === preg_match( '/^[A-Za-z0-9]{' . self::PASSWORD_RESET_BRIDGE_HANDLE_LENGTH . '}$/D', $handle );
}