theme specific plugin

Post Reply
matto
Jr. Bludit
Posts: 9
Joined: Fri Feb 19, 2016 6:50 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:

Code: Select all

    echo $treadmill->get();
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:

Code: Select all

$plugins['all']['treadmill']->get();
But i like the short version :)

greetings
matto
Post Reply