Commit 7d5fb7b
committed
Posts, Post Types: Add
This changeset adds a `pre_post_insert` action hook before inserting a new post via `wp_insert_post()`, allowing developers to modify or inspect post data before insertion. It brings consistency with the `pre_post_update` action hook triggered when a post is updated.
Props Hrohh, peterwilsoncc, audrasjb.
Fixes #63115.
git-svn-id: https://develop.svn.wordpress.org/trunk@60293 602fd350-edb4-49c9-b593-d223f7449a82pre_post_insert action hook before inserting a new post.1 parent 0664314 commit 7d5fb7b
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4874 | 4874 | | |
4875 | 4875 | | |
4876 | 4876 | | |
| 4877 | + | |
| 4878 | + | |
| 4879 | + | |
| 4880 | + | |
| 4881 | + | |
| 4882 | + | |
| 4883 | + | |
| 4884 | + | |
| 4885 | + | |
4877 | 4886 | | |
4878 | 4887 | | |
4879 | 4888 | | |
| |||
0 commit comments