custom post types – 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.

Thowzif Abdullah 2 years 2021-12-13T07:23:23-05:00 0 Answers 0 views 0

Leave an answer