Title: Hook into a plugin
Last modified: August 19, 2016

---

# Hook into a plugin

 *  [dyrk](https://wordpress.org/support/users/dyrk/)
 * (@dyrk)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/)
 * Hi
 * I’m quite familiar with hooking into WordPress. But How do I hook into another
   plugins functions?
 * Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [dyrk](https://wordpress.org/support/users/dyrk/)
 * (@dyrk)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/#post-2000477)
 * Just to expand a bit more.
 * I’m trying to write a plugin that hooks into Contact Form 7’s submit function.
   There are many extensions for this plugin, so perhaps someone can just give me
   a brief idea of how to do it?
 * Thanks
 *  [Joseph G.](https://wordpress.org/support/users/dunhakdis/)
 * (@dunhakdis)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/#post-2000482)
 * //example
 * function hello_world(){
    echo ‘Hi World!’; } add_action(‘the_post’,’hello_world’);
 * //where the ‘the_post’ is the hook and the ‘hello_world’ is the function to be
   executed.
 *  Thread Starter [dyrk](https://wordpress.org/support/users/dyrk/)
 * (@dyrk)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/#post-2000645)
 * Thanks dunhakdis
 * That’s for plugging into WordPress, but what I was really looking for I managed
   to find last night after sifting through a lot of code.
 * To hook into ANOTHER plugin – in this case it was contact form 7 – and indeed
   it was as easy as plugging into wordpress:
 * `add_action('wpcf7_before_send_mail', 'my_function');`
 * Thanks for your help though 🙂
 *  [Joseph G.](https://wordpress.org/support/users/dunhakdis/)
 * (@dunhakdis)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/#post-2000754)
 * You can hook into any functions as long as it is supported though 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hook into a plugin’ is closed to new replies.

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 4 replies
 * 2 participants
 * Last reply from: [Joseph G.](https://wordpress.org/support/users/dunhakdis/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/hook-into-a-plugin/#post-2000754)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
