2012-10-08, 16:30:57
I think you can get the plugin pages with these globals, like this.
This returns true if page is pages or edit for example, regardless of if its a plugin.
This returns true if page is pages or edit for example, regardless of if its a plugin.
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';
}