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';
}