[wp-hackers] setting category on publish
Kirk Wight
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
> a
> 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
> --
> Mike Little
> http://zed1.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list