pluggable.php, functions.php and wp-admin
-
I have a big problem.
I want to override pluggable.php function called wp_authenticate.
I place my own wp_authenticate in my theme functions.php file.When i go to /wp-admin and try to login, i get:
Fatal error: Cannot redeclare wp_authenticate() (previously declared in C:\wamp\www\oclab3_10_2010\wp-includes\pluggable.php:481) in C:\wamp\www\oclab3_10_2010\wp-content\themes\oclab\functions.php on line 248
I placed die(‘pluggable’) in pluggable.php and die(‘functions’) in functions.php and I see, that pluggable.php is fired before functions.php
In this case overriding pluggable.php functions is impossible.
I don’t want to change anything in core functions, but I need to override wp_authenticate function for custom rules no mather if I login using sidebar or /wp-admin.Can someone help me?
- The topic ‘pluggable.php, functions.php and wp-admin’ is closed to new replies.