[wp-hackers] Re: Detect if a plugin is calling function
david at coppit.org
Mon Apr 30 17:44:26 GMT 2007
On Fri, 6 Apr 2007, David Coppit wrote:
> On Fri, 6 Apr 2007, Alex Günsche wrote:
>> You could hook in before the other plugin, the add_action() and
>> add_filter() hooks provide an optional parameter to define the plugin
>> pririty. Plugins which don't use this parameter have a default value of
>> 10. Yours could use 7 or something.
> So setting the priority for Category Access to something like 1000 would
> have it filter *after* the other plugins filter it.
Hm... The problem still isn't solved. We wanted to be able to detect when
the categories or comments are being pulled for a plugin, rather than
being rendered for the user. For example, Akismet comments are being
modified by my plugin when they shouldn't be. Can anyone suggest a way to
detect whether a call to wp_list_categories is for user or not? Should I
deconstruct the stack?
David Coppit david at coppit.org
The College of William and Mary http://coppit.org/
"When the president does it that means that it is not illegal."
- Richard Nixon on domestic surveillance, 5/19/1977
"Do I have the legal authority to do this? And the answer is, absolutely."
- George W. Bush on domestic surveillance, 12/19/2005
More information about the wp-hackers