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


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.