Action and Filter Hooks
List of available action and filter hooks supported by UserMetaPro.
Forms and Fields
-
Action Hook: user_meta_before_form
Runs when generating form. Calling just before<form>
tag.
Parameter:(string) $formName
-
Action Hook: user_meta_after_form
Runs when generating form. Calling just after<form>
tag.
Parameter:(string) $formName
-
Filter Hook: user_meta_form_config
Can be modify forms data by calling this filter hook.
Parameter:(array) $formData, (string) $formName
-
Filter Hook: user_meta_field_config
Can be modify fields data by calling this filter hook.
Parameter:(array) $formData, (int) $fieldID, (string) $formName
-
Filter Hook: user_meta_field_display
Applied to field html before browser output.
Parameter:(string) $html, (int) $fieldID, (string) $formName, (array) $formData
-
Filter Hook: user_meta_form_display
Applied to form html before browser output.
Parameter:(string) $html, (string) $formName, (array) $formData
User Registration
-
Fliter Hook: user_meta_pre_user_register
This filter can be used to modify user data before user registration.
Parameter:(array) $userData
-
Action Hook: user_meta_after_user_register
This action will run immediately after user registration.
Parameter:(object) $response
User Profile Update
-
Fliter Hook: user_meta_pre_user_update
This filter can be used to modify user data before user profile update.
Parameter:(array) $userData
-
Action Hook: user_meta_after_user_update
Runs when user update their profile.
Parameter:(object) $response
User Activation/Deactivation
-
Action Hook: user_meta_user_activate
Runs when user activated.
Parameter:(int) $userID
-
Action Hook: user_meta_user_deactivate
Runs when user deactivated.
Parameter:(int) $userID
Email Verification
- Action Hook: user_meta_email_verified
Runs when user verified their email.
Parameter:(int) $userID
Redirection
-
Filter Hook: login_redirect
Can be used to change login redirection url.
Parameter:(string) $url, (string) $request_url, (WP_User | WP_Error) $user
-
Filter Hook: logout_redirect
Can be used to change login redirection url.
Parameter:(string) $url, (string) $request_url, (WP_User) $user
-
Filter Hook: registration_redirect
Can be used to change login redirection url.
Parameter:(string) $url, (int) $userID
Note: By default, all redirection filters is disabled. To enable them use user_meta_wp_hook
filter.
User Export
-
Filter Hook: user_meta_user_export_filename (since 1.2)
Change file name of exported csv file.
Parameter:(string) $fileName
-
Filter Hook: user_meta_user_export_csv_delimiter (since 1.2)
Change default delimiter,
Parameter:(string) $delimiter
-
Filter Hook: user_meta_user_export_csv_enclosure (since 1.2)
Change default enclosure"
Parameter:(string) $enclosure
-
Filter Hook: user_meta_user_export_label (since 1.2)
Change label of csv file (first row).
Parameter:(array) fields
-
Filter Hook: user_meta_user_export_fields (since 1.2)
Change field value of exported file.
Parameter:(array) $userData, (WP_User) $user
Misc
-
Filter Hook: user_meta_msg
Message text can be changed by this filter.
Parameter:(string) $message, (string) $key
-
Filter Hook: user_meta_wp_hook (since 1.1.6)
Enable or disable conflicted hooks.
Parameter:(boolean) $enable, (string) $hookName, (array) $args