Filter: um_custom_success_message_handler

apply_filters( 'um_custom_success_message_handler', $success, $updated, $args ) → {string}

Filters a custom success message.

Parameters:
Name Type Description
$success string

Success message.

$updated string

Updated key.

$args array

UM Form shortcode arguments.

Since:
  • 2.6.4 Added `$args` parameter.
Source:
Returns:

Message.

Type
string
Example

It adds a custom message for `custom_key_on_profile` updated key.

function my_custom_success_message( $success, $updated, $args ) {
    if ( 'custom_key_on_profile' === $updated ) {
        $success = 'Some custom message';
    }
    return $success;
}
add_filter( 'um_custom_success_message_handler', 'my_custom_success_message', 10, 3 );