I create a plugin folder in wordpress called my-game. my code work perfectly in the old fashion way by calling add_action and other rules. the problem is that I don’t want to call my code by registering it.I want to have a link in my sidebar (“index.php?action=game”) which will get the content of game.php in my-game plugin.
Share
This woudln’t be a nice way to do this but, can you add this in your function.php ?
I think the better way to do this is by adding a function in function.php to do what you want:
and then call it that way