I'm creating a new page in WordPress admin for a theme. In this new page will be a list of people registered (in a form), but with few details / information. So when a person clicks on something, I would like to open a "pop-up" (with all information) but not display this popup/page in the menus of the WordPress administration. Is there any way?

2 Answers 2


You can use the built in ThickBox to display the popup by Ajax:

//first add thickbox to your page
function add_thickbox(){
    if(is_admin() && (isset($_GET['page']) && $_GET['page'] == "my-plugin-file.php") { 
    wp_enqueue_style('thickbox.css', '/'.WPINC.'/js/thickbox/thickbox.css', null, '1.0');

//then in your user list for each user you add the thickbox 
//popup on the onclick and pass the info needed (like user id) so eg:

<!-- for each user add -->
 <a class="thickbox" onclick="javascript: show_user_info(user_id)">user name</a>
<!-- and then add this function once --> 
function show_user_info(user_id){
    var aj_url = 'admin-ajax.php?action=my_get_user_info&user_id=' + user_id;
    tb_show('userinfo',aj_url );

//so all you have left is to create the ajax processing function :
add_action('wp_ajax_my_get_user_info', 'my_AJAX_processing_function');
function my_AJAX_processing_function(){
    //echo user info 
    //and remember to die;  
  • great solution! I will try this! but do you have no idea a way to load a admin page in wordpress without menus? Aug 10, 2011 at 14:39
  • You can load different views in the same page by adding get parameters
    – Bainternet
    Aug 10, 2011 at 14:43

I would think you could add a css class to the body of that new admin page using a wordpress filter, then use css to hide the unwanted items within the page.


  • 1
    it's a good alternative solution, but I still want to no "load" html code, etc. no proccess the menu, not just visual. Aug 10, 2011 at 14:38
  • Yes... the above solution is definitely better. I misunderstand you intentions on first glance.
    – gruvii
    Aug 16, 2011 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.