Ready to get started?Download WordPress


remove_filter('authenticate', 'wp_authenticate_username_password'); (3 posts)

  1. Clifton Griffin
    Posted 4 years ago #

    I am writing an authentication plugin that attaches a filter to 'authenticate'. I want to prevent lower priority filters from authorizing login if my plugin fails. (More specifically, I want to prevent the default WP behavior)

    I tried to use this:
    remove_filter('authenticate', 'wp_authenticate_username_password');


    remove_filter('authenticate', 'wp_authenticate_username_password', 20, 3);

    but neither seem to do the trick.

    Am I doing this right?

  2. Clifton Griffin
    Posted 4 years ago #

    Anyone else dealt with this?

  3. vital101
    Posted 3 years ago #

    I know this is coming late, but I've had some success using:

    remove_action('authenticate', 'wp_authenticate_username_password', 20);

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Topic