[wp-trac] [WordPress Trac] #20451: wp_insert_post() should accept a meta_input argument
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 16 00:31:08 UTC 2012
#20451: wp_insert_post() should accept a meta_input argument
-------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
`wp_insert_post()` accepts a `tax_input` argument to set the post's terms,
but there's no similar argument to set the post's meta fields.
`add_post_meta()` must be called for each meta field after
`wp_insert_post()` is called.
I'll do up a patch at some point.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20451>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list