[wp-hackers] setting category on publish
kwight at kwight.ca
Fri Jul 20 17:37:18 UTC 2012
Perfect, just what I was looking for, thanks!
On 20 July 2012 11:13, Mike Little <wordpress at zed1.com> wrote:
> On 20 July 2012 15:59, Kirk Wight <kwight at kwight.ca> wrote:
> > Is there a way to assign a category to a custom post type upon its
> > scheduled publishing?
> Take a look at the action transition_post_status (
> http://codex.wordpress.org/Post_Status_Transitions) which is triggered as
> post's status changes.
> You can test whether the transition is to the 'publish' status, and of the
> correct post type, and assign/change the category accordingly.
> Mike Little
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers