Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
backend body id hook - is there a way ?
#5
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.

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';
}
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
backend body id hook - is there a way ? - by shawn_a - 2012-10-08, 16:30:57



Users browsing this thread: 1 Guest(s)