Title: user_register hook
Last modified: January 21, 2020

---

# user_register hook

 *  Resolved [josemetal7](https://wordpress.org/support/users/josemetal7/)
 * (@josemetal7)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/user_register-hook-2/)
 * Hi there! i’m trying to hook with “user_register” to catch a RADIO-GROUP value
   to execute some PHP (basically adding a capability), but i can’t figure which
   $_POST attribute is getting, the RADIO-GROUP info is this:
    Label: test_rg_label
   Meta Key: test_rg_metakey Options: str1 and str2
 * I tried with isset($_POST[‘test_rg_label’]) and isset($_POST[‘test_rg_metakey’])
   with no luck, no matter what code i insert after the if, so the form must have
   another key for the $_POST.
 * Thanks in advance!
    -  This topic was modified 6 years, 4 months ago by [josemetal7](https://wordpress.org/support/users/josemetal7/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [easyregistrationforms](https://wordpress.org/support/users/easyregistrationforms/)
 * (@easyregistrationforms)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/user_register-hook-2/#post-12364791)
 * Hello [@josemetal7](https://wordpress.org/support/users/josemetal7/),
 * Thank you for contacting us. You can use our hook “erf_user_created” which is
   called after user registration. Example:
 * add_action(‘erf_user_created’, ‘user_created’, 10, 3);
    function user_created(
   $user_id, $form_id,$sub_id){ // Here you will be able to access $_POST }
 * Regarding the $_POST key, It is generated dynamically by our plugin. As of now,
   there is no way to get the field name from the configuration. You can inspect
   it in the browser console by checking the field’s name.

Viewing 1 replies (of 1 total)

The topic ‘user_register hook’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-registration-forms_82b2df.svg)
 * [Easy Registration Forms](https://wordpress.org/plugins/easy-registration-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-registration-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-registration-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-registration-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-registration-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [easyregistrationforms](https://wordpress.org/support/users/easyregistrationforms/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/user_register-hook-2/#post-12364791)
 * Status: resolved