Table of Contents
List of useful actions and filters in Profile Builder.
<code>
<strong>@param array $http_request</strong> - HTTP Request containing all the fields submitted
<strong>@param string $form_name</strong> - The registration form name specified when using a custom Register form. Is 'unspecified' if using default registration
<strong>@param int $user_id</strong> - ID of registered user. Is NULL if Email Confirmation is active
Example:
1 2 3 4 | add_action( 'wppb_register_success', 'wppbc_custom_code', 20, 3 ); function wppbc_custom_code( $http_request, $form_name, $user_id ){ // custom code } |
<strong>@param int $user_id </strong>- User ID of registered user
<strong>@param string $password</strong>- Always NULL. Kept for backwards compatibility
<strong>@param array $meta</strong> - Array containing all the fields submitted in registration form. Password is hashed
<code>
<strong>@param array $http_request</strong> - HTTP Request containing all the fields submitted
<strong>@param string $form_name</strong> - The edit-profile form name specified when using a custom Edit Profile form. Is 'unspecified' if using default edit-profile
<strong>@param int $user_id</strong> - ID of user profile being edited
Example:
1 2 3 4 | add_action( 'wppb_edit_profile_success', 'wppbc_custom_code', 20, 3 ); function wppbc_custom_code( $http_request, $form_name, $user_id ){ // custom code } |
<strong>@param boolean $send_mail</strong> - Whether or not to send the email. Default value is true
<strong>@param string $to</strong> - Email recipient
<strong>@param string $subject</strong> - Email subject
<strong>@param string $message</strong> - Email body message
<strong>@param string $context</strong> - Context of sending message. Possible values: 'email_user_activate', 'email_user_approved', 'email_user_unapproved', 'email_user_need_approval', 'email_user_account_info'
<strong>@param int $user_id</strong> - The User ID of the approved user.
1 2 3 4 | add_action( 'wppb_after_user_approval', 'wppbc_custom_code', 20 ); function wppbc_custom_code( $user_id ){ // custom code } |
<strong>@param int $user_id</strong> - The User ID of the unapproved user.
1 2 3 4 | add_action( 'wppb_after_user_unapproval', 'wppbc_custom_code', 20 ); function wppbc_custom_code( $user_id ){ // custom code } |
Read more about actions and filters in the WordPress Codex.
Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.
Get Profile BuilderCombine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.
Get 25% off with the bundle