[wp-hackers] Degrading gracefully with deactivated plugins?

Kimmo Suominen kim at tac.nyc.ny.us
Thu Apr 21 03:02:26 GMT 2005


On Wed, Apr 20, 2005 at 10:35:27PM -0400, Firas D. wrote:
> Now that I got around to trying it.. that works, sweet. But: can 
> wp_cc_output_metadata be passed arguments via do_action?

The add_action() function is defined like this:

function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1)

The $accepted_args argument specifies how many arguments your function
accepts.  It will be passed no more than that many when do_action()
calls it.

Regards,
+ Kim
-- 
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>



More information about the wp-hackers mailing list