Tribe__PUE__Checker::is_valid_key_format()
Determines if the value on the DB is the correct format.
Return
(bool)
Source
File: src/Tribe/PUE/Checker.php
public function is_valid_key_format() {
$license_opt = (string) get_option( $this->get_license_option_key() );
if ( empty( $license_opt ) ) {
return false;
}
if ( ! preg_match( "/([0-9a-z]+)/i", $license_opt, $matches ) ) {
return false;
}
// Pull the matching string into a variable
$license = $matches[1];
if ( 40 !== strlen( $license ) ) {
return false;
}
return true;
}
Changelog
| Version | Description |
|---|---|
| 4.15.0 | Introduced. |