viewer_functions and add ons

By Maurice - January 16, 2011

Hi all,

like you probably all know i'm lazy [;)]

so is it possible and wise to add all my plugin header codes in the viewer_functions.php that way i only have to add all ones and not do it for each page I'm building.

if so is there a good sample how to do that?

Lets make things simpler [cool]

Greetz Maurice
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] viewer_functions and add ons

By Jason - January 17, 2011

Hi Maurice,

I'm not sure I understand what you mean by "plugin header codes". If you mean having your plugin functions available by including viewer_functions.php, this is already done. When you use require_once() for viewer_functions.php you have access to all your activated plugins automatically.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Maurice] viewer_functions and add ons

By Jason - January 18, 2011

Hi,

As long as your plugin has been activated, you don't need to use a require_once statement to make it available. You just need to include viewer_functions on your .php page.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] viewer_functions and add ons

By Maurice - January 18, 2011

great.
-------------------------------------------

Dropmonkey.nl