Forums

function like "is_admin_subpanel('edit-post')" ?? (1 post)

  1. mercuryfenix
    Member
    Posted 2 years ago #

    is there any function for use in plugins that works better than this:
    [code]if(isset($_GET['action']) && isset($_GET['post']))
    {
    if($_GET['action'] == 'edit')
    {
    add_action('admin_head', 'myplugin_js_init'); // JS
    add_action('admin_head', 'myplugin_css_init'); // CSS
    }
    }[/code]

    i would also like to be able to include my plugin on the "Add New Page" and "Add New Post" administration panels

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags