2012-08-25, 09:46:32
Quote:The problem is that I would need to test for pages.php, edit.php, etc. and then for load.php, but not only for my plugins, but for all plugins on the pages sidebar - I didn't find a way to determine, if the current tab is "Pages".
ohhh yeah didn't think of that.
Code:
function tab_is_pages(){
global $plugin_info,$plugin_id;
return (get_filename_id() == 'load' and $plugin_info[$plugin_id]['page_type'] == 'pages' ) or get_filename_id()=='edit';
}
That would probably do it.