Title: Learn hook response
Last modified: August 20, 2016

---

# Learn hook response

 *  [wordpress4vv](https://wordpress.org/support/users/wordpress4vv/)
 * (@wordpress4vv)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/learn-hook-response/)
 * The link: [http://codex.wordpress.org/Plugin_API/Action_Reference/personal_options_update](http://codex.wordpress.org/Plugin_API/Action_Reference/personal_options_update)
 * gives an example,
    add_action(‘personal_options_update’, ‘update_extra_profile_fields’);
   function update_extra_profile_fields($user_id) { update_user_meta($user_id, ‘
   my_custom_field’, ‘value’); }
 * From this I interpret, the ‘personal_options_update’ action hook returns a variable‘
   $user_id’ which it passes to user-defined function ‘update_extra_profile_fields’.
 * Now, how can i find all the variables returned by each action/filter hook. I 
   can not find it in help, only the example in the help showed that it returns 
   user_id. Can some one point me to a link of all variables returned by each hook.
 * thanks in advance.
    – vv

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

 *  [NateJacobs](https://wordpress.org/support/users/natejacobs/)
 * (@natejacobs)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/learn-hook-response/#post-2316103)
 * If it is not in the Codex you will need to dive into the core code to see what
   is being returned.
 * For example you can use this site to find the location of a specific action/filter
   in core.
 * [http://adambrown.info/p/wp_hooks/hook/personal_options_update](http://adambrown.info/p/wp_hooks/hook/personal_options_update)
 * Find the version you want to know about and view hook in source.
 *  Thread Starter [wordpress4vv](https://wordpress.org/support/users/wordpress4vv/)
 * (@wordpress4vv)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/learn-hook-response/#post-2316116)
 * Got it. Thank you.

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

The topic ‘Learn hook response’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [wordpress4vv](https://wordpress.org/support/users/wordpress4vv/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/learn-hook-response/#post-2316116)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
