Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

VeeBeeGlobal on "Writing Plugin - want to exclude some shortcodes/functions on some pages"

$
0
0

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


Viewing all articles
Browse latest Browse all 8245

Trending Articles