Recent Topics

multiple installs and Tools sub-tabs

Started by on Apr 25, 2008 – Contents updated: Apr 25, 2008

Apr 25, 2008 04:01    

I wonder if there is a way to create different labels for a sub-tab on the tools tab for multiple installations of the same plugin? Like acrolink makes a subtab called, appropriately enough, "Acro-Link". But if you install it multiple times then you get a bunch of sub-tabs with the same name. Not very helpful yah?

All I know is the basics.

Code

function AdminAfterMenuInit() {
  $this->register_menu_entry( 'Acro-Link' );
  }

Surely something like this is possible?

Code

function AdminAfterMenuInit() {
  $cool_label = $this->plugin->instance;
  $this->register_menu_entry( 'Acro-Link '.$cool_label );
  }


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.