Ready to get started?Download WordPress


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

  1. kkarpieszuk
    Posted 4 years ago #


    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