Table of Contents
List of useful actions and filters in Profile Builder.
@param array $http_request - HTTP Request containing all the fields submitted
@param string $form_name - The registration form name specified when using a custom Register form. Is 'unspecified' if using default registration
@param int $user_id - 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 } |
@param int $user_id - User ID of registered user
@param string $password- Always NULL. Kept for backwards compatibility
@param array $meta - Array containing all the fields submitted in registration form. Password is hashed
@param array $http_request - HTTP Request containing all the fields submitted
@param string $form_name - The edit-profile form name specified when using a custom Edit Profile form. Is 'unspecified' if using default edit-profile
@param int $user_id - 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 } |
@param boolean $send_mail - Whether or not to send the email. Default value is true
@param string $to - Email recipient
@param string $subject - Email subject
@param string $message - Email body message
@param string $context - Context of sending message. Possible values: 'email_user_activate', 'email_user_approved', 'email_user_unapproved', 'email_user_need_approval', 'email_user_account_info'
@param int $user_id - 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 } |
@param int $user_id - 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.
Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.
Get 25% off with the bundle