Support » Plugins and Hacks » Hacks » Links in Plugin
6 years, 3 months ago
I am writing a plugin for the first time.
The Plugin has a number of section – how do I have <a href= links in my plugin.
I have a submenu appearsing under Pages. When you click on the submenu link it shows:
Games | Teams | Players
How do I link each of the above to call a separate function within the plugin?
My google-fu has failed me.
I solved it by doing this:
$thispage = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
echo '<a href='.$thispage.'&tppage=teams>Team Names</a>';
Is there a better way?