[wp-trac] [WordPress Trac] #48769: meta_input, tax_input, tags_input and post_category arguments are not available in functions or methods hooked to wp_insert_post
WordPress Trac
noreply at wordpress.org
Tue Dec 17 14:55:35 UTC 2019
#48769: meta_input, tax_input, tags_input and post_category arguments are not
available in functions or methods hooked to wp_insert_post
------------------------------------+------------------------------
Reporter: henry.wright | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Changes (by henry.wright):
* keywords: dev-feedback => has-patch dev-feedback
Comment:
48769.diff introduces a new hook {{{post_inserted}}} in
{{{wp_insert_post()}}}.
{{{post_inserted}}} is very much like {{{post_updated}}} but it will run
when a post is created only. {{{post_inserted}}} will give hooked
functions access to the {{{$postarr}}} array. The existing
{{{post_updated}}} hook has been extended so that {{{$postarr}}} is
available to hooked functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48769#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list