Title: Finding hooks?
Last modified: August 30, 2016

---

# Finding hooks?

 *  [ramochoa](https://wordpress.org/support/users/ramochoa/)
 * (@ramochoa)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/finding-hooks-1/)
 * I know there are lists of hooks for WordPress like –> [http://adambrown.info/p/wp_hooks/hook](http://adambrown.info/p/wp_hooks/hook)
 * But if I want to find hooks for a plugin like WC Vendors there is a much shorter
   list of hooks like –> [https://www.wcvendors.com/kb/list-filtersactionshooks/](https://www.wcvendors.com/kb/list-filtersactionshooks/)
 * Are ‘do_action’ and ‘apply filter’ functions the only thing we can modify?
    If
   given a class like –> [https://github.com/wcvendors/wcvendors/blob/master/classes/admin/class-product-meta.php#L10](https://github.com/wcvendors/wcvendors/blob/master/classes/admin/class-product-meta.php#L10),
   is there any way to modify it?
 * Are we limited to the do_action hooks or is there a way to modify other areas
   as well? Can we use the WordPress hooks to hook into the WC Vendors plugin as
   well?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/finding-hooks-1/#post-6809126)
 * Hooks are only invoked with `apply_filter()` and `do_action()` or their ref_array
   variants. Finding the right hook in a DB can be hit and miss. The most reliable
   way is to trace through the code you want to affect and look for the telltale
   calls. This includes drilling into sub-functions through as many levels as necessary.
   It matters not if the code is in a class or is procedural.
 * It might be possible to affect WC Vendors code with a WP core hook because WC
   Vendors code more than likely calls WP functions which use hooks. The trick is
   causing your hook to be applied for the needed situation and not other situations
   that fire the same hook.

Viewing 1 replies (of 1 total)

The topic ‘Finding hooks?’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/finding-hooks-1/#post-6809126)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
