theme specific plugin

Post Reply
Jr. Bludit
Posts: 9
Joined: Fri Feb 19, 2016 5:50 pm

Thu Apr 06, 2017 11:35 am


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:

Is there a better / safer way to do this?
I figured out that i can access my plugins methods with:

Code: Select all

But i like the short version :)

Post Reply