[wp-trac] Re: [WordPress Trac] #4844: Need set_post_type API

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 10 19:46:03 GMT 2007

#4844: Need set_post_type API
 Reporter:  filosofo                           |        Owner:  anonymous
     Type:  enhancement                        |       Status:  new      
 Priority:  normal                             |    Milestone:  2.4      
Component:  General                            |      Version:  2.3      
 Severity:  normal                             |   Resolution:           
 Keywords:  set_post_type post_type has-patch  |  
Comment (by filosofo):

 Replying to [comment:2 ryan]:
 > I think this needs to use wp_update_post() so that all of the right
 actions are triggered.

 One advantage to a stand-alone function instead of just using
 wp_update_post() is that you don't have to know all of the post data

 Also, other aspects of a post can be changed without going through
 wp_update_post, such as categories, tags, ping URLs, and post meta-data.

 And you keep the API parallel: where there's a get_* there should be a
 set_* or update_*

Ticket URL: <http://trac.wordpress.org/ticket/4844#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list