Clone wp-admin/users.php (Users Admin Page)
I have created a new page in admin. I need to show all the users in this page(like Users admin page).
The reason for this is because i want to show certain custom user roles only on this page.
I tried using WP_List_Table
but no luck in figuring out on how to implement.
This is the function i have, i need to put the code inside here.
add_action( 'admin_menu', 'cypolicy_users_admin_menu' );
function cypolicy_users_admin_page_contents()
{
echo h1 . esc_html_e( 'CyPolicy Users', 'cypolicy-users-plugin-textdomain' ) . /h1;
}
Can someone kindly guide me.
Topic table wp-list-table user-roles users custom-post-types Wordpress
Category Web