Forums

[resolved] do action before publish a post (4 posts)

  1. storyday
    Member
    Posted 5 years ago #

    if I want do action before publish a pos, such as convertting some special chars, and then insert post into DB, what is the action hook?
    thank you!

  2. whooami
    Member
    Posted 5 years ago #

    thats all in this great link and the codex:

    http://wphooks.flatearth.org/

    http://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filters

    I could just answer the question, but honestly, is your ability to search broke?

  3. Zoutesnor
    Member
    Posted 5 years ago #

    The action hook is publish_post, see also this.

  4. storyday
    Member
    Posted 5 years ago #

    sorry,I just forgot I have that ability, I want to delete this post ,but I can not find the button!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags