WC_Payment_Token::validate()
Validate basic token info (token and type are required).
Description Description
Return Return
(boolean) True if the passed data is valid
Source Source
File: includes/abstracts/abstract-wc-payment-token.php
public function validate() {
$token = $this->get_prop( 'token', 'edit' );
if ( empty( $token ) ) {
return false;
}
return true;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |