WordPress has a file called pluggable.php
which contains a list of functions you can override in your plugin.
The problem I am facing (I am overriding wp_authenticate
) is for each blog in my network I try to activate this plugin, I get:
failure, can’t re-declare wp_authenticate which was previously declared in pluggable.php
This somewhat defeats the ease of use, I have to comment the function in the plugin file, activate the plugin, un-comment the function for it to work properly.
What is the correct way to do it?
Can’t expect users who download plugin to do all that.
I am using 3.5 + multi-site configuration