Hoping someone may know the easiest way to achieve this.
I am writing a plugin for a donations system, and so that I dont load functions and shortcodes I dont need - I want to try and not include them if they are not required.
I have separated the admin functions, and only load these if is_admin.
I have several shortcodes and functions that I want to exclude if not on certain pages of the site. I have these in separate php files which I currently do a require_once with, but the goal is to not load them in some circumstances.
Thanks HEAPS for any help.
V