A Cozmoslabs Product
Documentation / Developer Knowledge Base / Userlisting / Change the Sort By Username label in User Listing

Change the Sort By Username label in User Listing

This function changes the Sort By Username label from User Listing.

sort_user_name_filter is located in Profile Builder: /modules/user-listing/userlisting.php

1
2
3
4
5
6
7
8
/*
 * Change the Sort By Username label in User Listing
 */
 
add_filter( 'sort_user_name_filter', 'wppbc_change_sort_username' );
function wppbc_change_sort_username( $label ) {
   return 'Custom_label_name';
}

Profile Builder Pro

Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.

Get Profile Builder

The Ultimate Membership Bundle

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

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket