woocommerce_store_api_disable_nonce_check

woocommerce_store_api_disable_nonce_check

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_store_api_disable_nonce_check') is found 1 times:

  • /src/StoreApi/Routes/V1/AbstractCartRoute.php line 324
    		 * @param boolean $disable_nonce_check If true, nonce checks will be disabled.
    		 *
    		 * @return boolean
    		 */
    		if ( apply_filters( 'woocommerce_store_api_disable_nonce_check', false ) ) {
    			return true;
    		}
    
    		if ( null === $nonce ) {
    			return $this->get_route_error_response( 'woocommerce_rest_missing_nonce', __( 'Missing the Nonce header. This endpoint requires a valid nonce.', 'woocommerce' ), 401 );
    		}
    

See this hook used in plugins: