Recipe_Post_Rest_Api::valid_nonce()
Checks the nonce of Rest API requests
Return Return
(bool)
Source Source
File: src/core/automator-post-types/uo-recipe/class-recipe-post-rest-api.php
public function valid_nonce() { if ( empty( $_SERVER['HTTP_X_WP_NONCE'] ) ) { return false; } return wp_verify_nonce( $_SERVER['HTTP_X_WP_NONCE'], 'wp_rest' ); }
Expand full source code Collapse full source code View on Github