Automattic\WooCommerce\StoreApi\Routes\V1
Checkout::requires_nonce()
Checks if a nonce is required for the route.
Method of the class: Checkout{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->requires_nonce( $request );
- $request(\WP_REST_Request) (required)
- Request.
Checkout::requires_nonce() Checkout::requires nonce code WC 9.4.2
protected function requires_nonce( \WP_REST_Request $request ) { return ! $this->has_cart_token( $request ); }