[wp-hackers] Overriding Cor Functions (Was: IIS Problem)

Robert Deaton false.hopes at gmail.com
Mon Apr 4 05:26:10 GMT 2005


I hate to be completely off topic, but any chance that will be added to the 
core, Ryan?

On Apr 3, 2005 10:34 PM, Ryan Boren <ryan at boren.nu> wrote:
> 
> On Mon, 2005-04-04 at 00:30 +0200, Dan Thrue wrote:
> > I think this a very good approach to have more control from
> > plugins/modules whatever the should be called over core functions...
> >
> > Similar your approach i have always wandered why there wasnt an
> > "activate" and "deactivate" hook for plugins... I always do it
> > manually :)
> 
> The attached patch introduces activate/deactivate hooks. preload_file()
> can be called from the activation hook. Here's the usage:
> 
> function test_activate() {
> echo "activate<br/>";
> }
> 
> function test_deactivate() {
> echo "deactivate<br/>";
> }
> 
> register_activation_hook(__FILE__, 'test_activate');
> register_deactivation_hook(__FILE__, 'test_deactivate');
> ?>
> 
> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 
> 
> 
> 


-- 
--Robert Deaton
http://somethingunpredictable.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050404/b421dd5c/attachment.html


More information about the wp-hackers mailing list