WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Use of the name of hook in a plugin (2 posts)

  1. lbcd78
    Member
    Posted 7 years ago #

    I am developing a module resting on hooks present in the topics. To use the hook, I implement the function add_action (<nom_du_hook>, <fonction_proto>), and I developed a function “fonction_proto”. In this function proto, I need to know the name of the hook which initiated this function. I in vain test different synthaxes, I do not manage to obtain this value. Does somebody know if it is possible? Thank you by advance for any help

  2. lbcd78
    Member
    Posted 7 years ago #

    I use function debug_backtrace to solve

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags