`registration_errors` filter doesn’t seem to be called

Question

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("nnBegin 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);

Active plugins

  • AffiliateWP 2.3.4
  • AffiliateWP – Affiliate Area Shortcodes 1.1.7
  • AffiliateWP – Affiliate Area Tabs 1.2.9
  • AffiliateWP – Order Details For Affiliates 1.1.5
  • Authorize.net Payment Gateway For WooCommerce 5.66
  • Avada Builder 3.0.2
  • Avada Core 5.0.2
  • Checkout Field Editor for WooCommerce 1.4.4
  • Checkout Manager for WooCommerce 5.2.9
  • Code Snippets 2.14.0
  • Custom Post Type UI 1.8.1
  • Essential Grid 3.0.7
  • Featured Image 2.1
  • GTranslate 2.8.60
  • Health Check & Troubleshooting 1.4.5
  • Include Me 1.2.0
  • Insert Headers and Footers 1.4.6
  • Limit Login Attempts Reloaded 2.15.2
  • Loco Translate 2.4.4
  • Login or Logout Menu Item 1.2.0
  • MailChimp for WordPress – Premium 4.5.2
  • Ninja Forms 3.4.30
  • Ninja Forms – Addon Manager 3.0.13
  • Ninja Forms – Conditional Logic 3.0.28
  • Ninja Forms – File Uploads 3.3.6
  • Ninja Forms – Layout & Styles 3.0.27
  • Ninja Forms – Multi-Part Forms 3.0.26
  • Ninja Forms – Post Creation 3.0.10
  • Ninja Forms – User Management 3.0.12
  • Ninja Forms – WebMerge 3.0.3
  • Ninja Forms – Zapier 3.0.8
  • Ninja Forms Customize 1.0.0
  • Ninja Mail 1.0.5
  • PeepSo 3.0.2.0
  • Plugin Organizer 10.1.4
  • Popup Add-on for Ninja Forms 3.3
  • PPOM for WooCommerce by N-MEDIA 20.5
  • Product Customer List for WooCommerce 2.9.2
  • Slider Revolution 6.2.23
  • Stranoweb Ajax Login Premium 1.7.7
  • User Login History 2.0.0
  • User Menus 1.2.4
  • WC Variations Radio Buttons 2.0.3
  • WebP Express 0.18.2
  • WooCommerce 4.6.1
  • Woocommerce Add-to-Cart Custom Redirect 1.2.8
  • WooCommerce Admin 1.6.3
  • WooCommerce Email Customizer with Drag and Drop Email Builder 1.5.16
  • WooCommerce Memberships 1.17.5
  • Woody ad snippets (PHP snippets | Insert PHP) 2.3.10
  • WooHero 3.3
  • WooHero PRO 3.1
  • Woo Shortcodes Kit 1.9.3
  • Wordfence Security 7.4.12
  • WordPress Importer 0.7
  • WP File Manager 6.9
  • WP GDPR Compliance 1.5.4
  • XT WooCommerce Floating Cart 1.8.2
  • Yoast Duplicate Post 3.2.6
  • Zapier for WordPress 1.0.2
0
just.another.programmer 2 months 0 Answers 14 views 0

Leave an answer