WP hook : Add column to Users admin panel

// June 19th, 2016 // WordPress

Hi,

I’d like to share a new experience in WordPress , adding hooks in your code.

The problem :

I want to add new custom sortable column to Users Admin panel in WordPress

Solution :

# Add these lines to you functions.php
## Suppose your new column will be named as type, and the meta_key in (user_meta) db is ‘type’.

See the readme file on github here :
https://github.com/esl4m/wordpress_hook_to_sort_new_column

..

Result will be like this :

hook_sort_type

Leave a Reply