Forums

replace the wp_check_password pluggable function (2 posts)

  1. jstockdale
    Member
    Posted 2 years ago #

    I've been scouring the internet trying to figure out exactly how to replace the wp_check_password function. Reading the comments in the pluggable.php file in the documentation makes me think this should be an easy process but I must be missing something. I've created a plug-in called "joomla_check_password" and I added a filter like so:

    add_filter('check_password', 'joomla_check_password', 3);

    But evidently this hook is actually right after the normal wp_check_password function is called. The only filter I can find right before the function is called is the authenticate filter, which would mean that I need to replace the wp_authenticate_username_password function as well. Am I correct in saying this?

  2. acedrew
    Member
    Posted 2 years ago #

    Simply define the function anywhere else, no need for hooks or filters, WordPress searchs for the function before using the one in pluggable.php

    More Detail here: http://codex.wordpress.org/Pluggable_Functions

    Andrew Rodgers

Topic Closed

This topic has been closed to new replies.

About this Topic