Enable account status sorting in Member Directories

Another alternative to making admin tasks more efficient is to enable the account status sorting in Member Directories.  This way,  the users can be sorted by ‘status and date registered ’so the ‘ Pending Review’ is listed and displayed first followed by ‘Approved’. The code below will sort the list by account status and has a secondary sort by date registered in descending order so the newest registrations appear first. 

Note: Try adding the code snippet to your theme’s functions.php file or use the Code Snippets plugin.

Warning: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.