Filter: um_before_user_submitted_registration_data

apply_filters( 'um_before_user_submitted_registration_data', $before_html, $output, $submitted_data ) → {string}

Filters the custom HTML before user registration submitted and formatted data.

Parameters:
Name Type Description
$before_html string

Custom HTML before submitted data.

$output string

Prepared submitted data in HTML format.

$submitted_data array

Submitted user data during registration.

Since:
  • 2.9.2
Source:
Returns:

Custom HTML before submitted data.

Type
string
Example

Change custom HTML before user registration submitted and formatted data.

function my_user_submitted_registration_data( $before_html, $output, $submitted_data ) {
    if ( ! empty( $submitted_data['custom_data'] ) ) {
        $before_html .= 'Custom HTML here';
    }
    return $before_html;
}
add_filter( 'um_before_user_submitted_registration_data', 'my_user_submitted_registration_data', 10, 3 );