Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormProcessor::has_valid_nonce
Verify the order withdrawal form nonce.
Method of the class: OrderWithdrawalFormProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->has_valid_nonce(): bool;
OrderWithdrawalFormProcessor::has_valid_nonce() OrderWithdrawalFormProcessor::has valid nonce code WC 11.1.2
private function has_valid_nonce(): bool {
$nonce_value = $this->get_posted_text_value( self::NONCE_FIELD );
return '' !== $nonce_value && (bool) wp_verify_nonce( $nonce_value, self::NONCE_ACTION );
}