WordPress.org

Ready to get started?Download WordPress

Forums

How to append category to post when it is published? (1 post)

  1. kkarpieszuk
    Member
    Posted 4 years ago #

    hello

    Any idea how to automaticallly append category to post when its status iss changed from draft to published? category should be attached to post only if post author id is '3'

    I know (i suppose) that i should use some:

    add_action('publish_post', callback_func');

    but how should look callback_func()?

Topic Closed

This topic has been closed to new replies.

About this Topic