[wp-hackers] Shortcodes and formatting

Mark Jaquith mark.wordpress at txfx.net
Tue Apr 1 19:33:49 GMT 2008


On Apr 1, 2008, at 12:42 PM, Andy Skelton wrote:
> On plugin deactivation, call null_shortcode($tag). This adds $tag to
> an array stored in options table.
>
> On add_shortcode, check for $tag in null_shortcode array. If found,
> remove it and update_option.
>
> On do_shortcode, replace tags in null_shortcode array with empty  
> string.


How would we know which plugin adds which tag?  i.e. how do we  
automatically queue up the deactivation hook to remove the tag?

--
Mark Jaquith • http://markjaquith.com/





More information about the wp-hackers mailing list