Quote:
Originally Posted by Jennifer2010
Thanks for the response.
Just to make sure we're on the same page:
The original code I originally supplied is already an existing plugin that automatically inserts itself into every page/template on the site. So, is merely adding the usergroup restriction reversing the plugins existing ability of being inserted into every page?
Thank you!
|
The plugin uses the hook location "global_start" so it will in fact be executed on every page. The usergroup restriction will determine whether the code within the conditional is executed or not, as determined by the the value returned by the is_member_of() function. If this function returns a true value, it will execute, but if it returns a false value it will not.