Used By
Used By | Description |
---|---|
wp-includes/post.php: wp_insert_post() | Insert or update a post. |
Filters whether the post should be considered “empty”.
The post is considered "empty" if both:
Returning a truthy value from the filter will effectively short-circuit the new post being inserted and return 0. If $wp_error is true, a WP_Error will be returned instead.
(bool) Whether the post should be considered "empty".
(array) Array of post data.
File: wp-includes/post.php
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_insert_post_empty_content