Summery Summery
Filters a post before it is inserted via the REST API.
Syntax Syntax
Description Description
The dynamic portion of the hook name, $this->post_type
, refers to the post type slug.
Parameters Parameters
- $prepared_post
-
An object representing a single post prepared for inserting or updating the database.
- $request
-
Request object.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |