Filter: um_profile_navbar_classes

apply_filters( 'um_profile_navbar_classes', $classes ) → {string}

Filters classes of the User Profile navigation bar.

Internal Ultimate Member callbacks (Priority -> Callback name -> Excerpt): 10 - um_followers_profile_navbar_classes() from Followers extension class. 10 - profile_navbar_classes() from Messaging extension class.

Parameters:
Name Type Description
$classes string

User Profile navigation bar classes.

Since:
  • 2.0
Source:
Returns:

User Profile navigation bar classes.

Type
string
Example

Adds `my_custom_class` class to the navigation bar on the User Profile page.

function my_um_profile_navbar_classes( $classes ) {
    // your code here
    $classes .= ' my_custom_class';
    echo $classes;
}
add_filter( 'um_profile_navbar_classes', 'my_um_profile_navbar_classes' );