Forums

add_action, where are the hooks? (2 posts)

  1. Meini
    Member
    Posted 2 years ago #

    I am somewhat new to the plugin scene and I hit a brick wall in my learning curve.

    I have been trying to modify a plugin to work for my client's specific requirements. So I came across these action hooks (I believe that's what they are called):

    new_to_publish
    draft_to_publish
    pending_to_publish
    etc... etc...

    All my attempts to find out more about them failed. I have been looking everywhere on this site, even googled them and scanned the WordPress code etc. all to no avail.

    In forums everybody seems to know about them, except I can't find any documentation about any of them, anywhere. The only thing I found is developers talking about them as if it was common knowledge. huh?

    Where does this information come from in the first place? What am I missing here?

    Any help would be highly appreciated.

  2. Meini
    Member
    Posted 2 years ago #

    Alright, I think I found an answer, kind of....
    codex.wordpress.org/Post_Status_Transitions holds the "secret" answer. These action hooks are kind of generic, that's why there is no explicit documentation and/or source code reference to be found for each individual one. Tricky!

    I don't like holding monologues, so any further comments are welcome. :)

Topic Closed

This topic has been closed to new replies.

About this Topic