admin管理员组

文章数量:1317572

I'm working on a plugin for a customer with an existing WP site. I added some registration login with add_filter('registration_errors'...) but the code does not seem to be called. All my other hooks are working fine.

    add_filter( 'registration_errors', function($errors, $sanitized_user_login, $user_email) use ($rwlh_config) {
        RwlhLogger::Log("\n\nBegin rwlh reg error filter", 'debug');
        
        if(!$errors->get_error_code()) {
            $password = $_POST[$rwlh_config['regPasswordField']];
            $artistName = $_POST[$rwlh_config['regArtistNameField']];
    
            $errors = rwlh_register( $artistName, $user_email, $password, $errors );            
        }

        return $errors;
    }, 10, 3);

Note: Active plugins (see edit history).

本文标签: plugin developmentregistrationerrors filter doesn39t seem to be called