Open a Thickbox with content trough AJAX
The second parameter for tb_show is the URL, so you’ll want to use something like.. <?php $ajax_url = add_query_arg( array( ‘action’ => ‘getTheContent’, ‘query_var1’ => ‘value1’, ‘query_var2’ => ‘value2’ ), admin_url( ‘admin-ajax.php’ ) ); ?> tb_show(tag, ‘<?php echo $ajax_url; ?>’ ); I’d guess you need to pass the action and any additional query vars manually(as … Read more