rest_pre_insert_{$this->post_type}

rest_pre_insert_{$this->post_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('rest_pre_insert_{$this->post_type}') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 1399
    		 * @param stdClass        $prepared_post An object representing a single post prepared
    		 *                                       for inserting or updating the database.
    		 * @param WP_REST_Request $request       Request object.
    		 */
    		return apply_filters( "rest_pre_insert_{$this->post_type}", $prepared_post, $request );
    	}
    
    	/**
    	 * Checks whether the status is valid for the given post.
    	 *
    	 * Allows for sending an update request with the current status, even if that status would not be acceptable.