I wrote a theme-specific plugin, my goal is an object with custom methods to call in my theme.
This is how its called:
Code: Select all
echo $treadmill->get();
https://github.com/muellmatto/bludit-plugin-treadmill
Is there a better / safer way to do this?
I figured out that i can access my plugins methods with:
Code: Select all
$plugins['all']['treadmill']->get();
greetings
matto