Filter: um_password_reset_form_primary_btn_classes

apply_filters( 'um_password_reset_form_primary_btn_classes', $classes, $args ) → {array}

Filters the classes applied to the primary button on the password reset form.

Parameters:
Name Type Description
$classes array

An array of CSS classes applied to the primary button.

$args array

An array of arguments or configurations used in the password reset form.

Since:
  • 2.10.5
Source:
Returns:

Button CSS classes.

Type
array
Example

Extend the classes applied to the primary button on the password reset form.

function my_custom_classes( $classes, $args ) {
    // Add a new class to the button
    $classes[] = 'new-button-class';

    return $classes;
}
add_filter( 'um_password_reset_form_primary_btn_classes', 'my_custom_classes', 10, 2 );