function like “is_admin_subpanel(‘edit-post’)” ??
-
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
- The topic ‘function like “is_admin_subpanel(‘edit-post’)” ??’ is closed to new replies.