Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::has_valid_nonce │ private │ WC 1.0

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