Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I know what action, filter, function etc.?


  • Ali Erkurt
    Participant

    @alierkurt

    Hello,
    I want to define my_own_function like functions and modify the original functions. But I don’t know which function or “action” thing to replace or remove. For example, this is the original admin bar hook:

    add_action( ‘bp_adminbar_menus’, ‘bp_adminbar_blogs_menu’, 6 );

    This is remove action hook:
    remove_action(‘bp_adminbar_menus’, ‘bp_adminbar_blogs_menu’, 6);

    And this one is the replace hook:
    add_action(‘bp_adminbar_menus’, ‘my_adminbar_blogs_menu’, 6);

    We all know those for the admin bar. But if I want to replace another action or function, where can I find it? Is there a plugin for this (I don’t know whether WP Hook Sniffer works for this or not.)

    Let’s say I want to replace groups_post_update, what hooks will I replace and how will I know they’re the hooks that I need to replace or remove.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I know what action, filter, function etc.?’ is closed to new replies.
Skip to toolbar