Well, ended up fixing this after hours of banging my head against ones keyboard. Fixed by making the first parameter of my hooked function a value instead of a reference – curious when nearly all hooks in wordpress pass the error object by reference!
function validatePasswordReset( &$errors, $userData ) {
return validateComplexPassword( $errors );
}
changed to
function validatePasswordReset( $errors, $userData ) {
return validateComplexPassword( $errors );
}
Curious as to why most actions have a reference on the codex, for example:
http://codex.wordpress.org/Plugin_API/Action_Reference/user_profile_update_errors
but there is no entry for validate_password_reset?
Related Posts:
- Hook into all password resets in WordPress and get password before hashing?
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- Can i check if user is doing any ajax request?
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Hooking new functions to actions + passing parameters
- Why do filters/actions require an argument count?
- How to access function from outside of a class within this class in WP plugin?
- How to use return in my custom function instead of echo
- Adding Default Settings to Theme My Login plugin
- add_action shortcut?
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Modify custom field input data before creating a new post
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- jQuery code not working when included in functions.php
- Override a function defined in wp-includes/comment-template.php
- Password minimum length in personal subscription [closed]
- Nested “do” and “add” Actions is possible?
- WordPress redirect redirecting too many times or not at all
- How do I create a function that modifies a message in the wp-login.php file?
- How to pass hook variable to function?
- Reject all malicious URL requests functions.php
- remove_action from parent theme using child theme functions.php
- Access WP files on “server 1”, from “server 2” – using wp-load on an external website
- remove_action() not working in page template – Genesis
- Unable to pass arguments to function used in add_action
- Issue encountered while trying to keep website private
- WordPress HTML Helper
- Highlight posts currently being edited on multiple editor site?
- Password form redirection to belonging post
- Why a class property becomes empty?
- Is there a hook that I can use when a fatal error occurs?
- Execute wp_after_insert_post after the permalink is customized
- What is This esc_html_e() i wordpress php?
- Displaying Logged-In User Name in WordPress Menu
- Autoloading in Child Theme
- How to add a class to the attachment images
- How to correct schedule my event weekly with wp_schedule_event()
- Execute a shortcode when clicking on a image
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- How can one utilize a variable as a callback function name for add_settings_field
- Change logo based on incoming domain
- Password protecting content in custom template
- Count the number of times the search form template gets included on a page
- PHP code inside shortcodes
- How do I display a user’s previous orders as a select box option on a product?
- Remove meta description on certain pages
- Image media upload metabox
- How to combine wordpress_logged_in cookies in one cookie?
- Woocommerce related product text
- esc_html_e() is not translating string in wordpress [closed]
- WordPress Gravatar filter is removing my custom attributes
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- Adding widgets to my plugin page instead of WordPress dashboard
- Limit 1 global comment per minute
- Remove echo from shortcode
- responsive.css in the WordPress should be prioritized
- How to get Post Type from the functions.php file
- Edit the_category (); for a hierarchical display
- Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args
- Multiple meta_key in one global $wpdb;
- Using data sent via AJAX in multiple functions on a WP plugin
- Utilize Function in Child Theme / Template File
- HTML Special Characters in URL string [closed]
- Create page template via functions.php?
- How to have different site identity logos on each page on Astra Theme [closed]
- How to pass argument to add_action while the method is inside a class?
- CSS change in woo commerce Place Order Text [closed]
- child parent styles enqueue order
- Add URL parameter to all internal links using a specific theme
- Warning: call_user_func() expects parameter 1 to be a valid callback, function
- Change MySQL PDO connection to a WPDB connection
- AJAX function not working [closed]
- Modify WooCommerce used to get all orders in dashboard
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Only the first image uploads
- Search by date in WordPress
- Hide a div if the fiels is empty
- Illegal string offset checkbox
- removing the standard dashboard widgets in WP so I Can replace with custom
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- wpdb->query returns different value to phpMyAdmin
- Trying to add some custom text into WordPress Post title via function.php
- Change header on one page in WordPress
- I got big white screen when i attach main style sheet of Html in functions.php
- Add Product Permalink in woocommerce admin order page
- Cleaner ‘for each’ loop for registering scripts in functions.php
- How do I make comment-reply-button with that takes to comment reply form on click
- How to generate customized filtered output for the gallery
- Allow BBPress participant role to trash topics
- Display Year and Month from custom field + Age Calculator
- WordPress rating by views [closed]
- Get author meta of all writers
- Replace TinyMCE with Custom Built Editor
- Particular meta tag – viewport – insertion when dealing with plugin
- WP Fatal error: Call to undefined function get_template_directory_uri()
- Remove default Image Sizes
- A better way to write this php function
- Automatically change insurance quantity based on cart total [closed]
- hiddenQuestions.find is not a function
- Check if User Meta has Existing Value