[wp-hackers] Degrading gracefully with deactivated plugins?

Firas D. fd at firasd.org
Thu Apr 21 02:35:27 GMT 2005


Dan Thrue wrote:

>Lets take the former example:
>
>snip:
>  
>
>><?php if(function_exists('wp_cc_output_metadata') { wp_cc_output_metadata() } >
>>
>><?php _cpf('wp_cc_output_metadata') ?>
>>    
>>
>
>Instead we would have a hook like:
><?php do_action('wp_output_metadata'); ?>
>
>and the plugin would apply to it as usual: 
><?php add_action('wp_output_metadata', 'wp_cc_output_metadata'); ?>
>  
>
Now that I got around to trying it.. that works, sweet. But: can 
wp_cc_output_metadata be passed arguments via do_action?


More information about the wp-hackers mailing list