theme specific plugin
Posted: Thu Apr 06, 2017 1:35 pm
Hi!
I wrote a theme-specific plugin, my goal is an object with custom methods to call in my theme.
This is how its called:
The plugins code is on github:
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:
But i like the short version
greetings
matto
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