How to open target blank in a custom admin sub menu page?

前端 未结 1 347
感情败类
感情败类 2021-01-01 06:18

Here is my external link menu function for admin area:

##CACHE MENU
add_action(\'admin_menu\', \'mariCacheDel\');
function mariCacheDel() {
    global $subme         


        
1条回答
  •  时光取名叫无心
    2021-01-01 07:03

    It has to be with jQuery and using a small trick in the admin_menu to insert a target div with an ID:

    add_action('admin_menu', 'mariCacheDel');
    function mariCacheDel() {
        global $submenu;
        $submenu['themes.php'][] = array(
                '
    MARIA CACHE
    ', // <-- trick 'manage_options', site_url( '/cache/?do=deleteAll' ) ); } add_action( 'admin_footer', 'make_maricache_blank' ); function make_maricache_blank() { ?>

    0 讨论(0)
提交回复
热议问题