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?
- Removing Default Gutenberg Blocks, But Keeping Reusable Block Functionality?
- adding a filter to a shortcode?
- How to override an unpluggable parent theme function?
- Change the footer text on the login page
- Displaying post per day
- Rewriting search and pagination base
- How do I create a WP user outside of WordPress and auto login?
- Copyright info change in Theme Child PHP
- Is it unsafe to put php in the /wp-content/uploads directory?
- How to Populate the list of custom post type categories
- Php string not working in WordPress Functions.php [duplicate]
- Understanding WordPress child theme custom JS loading
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions
- Insert After Second Paragraph Without Tag?
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Using wp_get_image_editor in a standalone script
- page template for attachement page?
- PHP Deprecated: WP_RSSjb has a deprecated constructor
- Removing unneccessary p-tags (Not every p)
- Set WordPress Default Template
- Can’t get page content in WordPress
- Showing content from one page on another
- How to insert a single row to WP database table?
- Get date numerical and separate?
- How to check if a meta value has already been assigned to any user?
- How to call plugin function per site in a multisite?
- Unique icons next to each WordPress menu item
- Function works everywhere, how to keep it to execute when creating a new post
- Add login hyperlink to secondary navigation menu
- Pagination broken on is_front_page()
- Change page password every day (predictable password ;) )
- Reading settings in the home page precisely home.php
- Action Hook Inside WordPress Plugin Shortcode
- Calling function in loop causes repeat data
- Is there a hack for using is_page() within the function.php file?
- Add a select-option to the default widgets
- Programmatically revert to backup .htaccess a possibility?
- WordPress User Meta value variable into Google Gauge Chart
- Show all people who commented on all posts by an author
- Custom global variable not working in function
- Embed video from streamtape using direct link
- Is there a PHP function that will return the block ID generated by WordPress?
- Creating a Function and Call It
- WooCommerce display price before add to cart [closed]
- get_the_author_meta( ‘ID’ ) just return 1
- Site title not showing. Please help me
- Check if post visited first time
- Store custom field’s multiple values in one user meta key
- Need to Echo A Url path to show on a wordpress page
- Theme editing “post thumbnail” help
- Restrict File Type Uploads by User on Wordress via functions.php
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- AJAX Returning Way Too Many Posts
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- How I can add div to menu?
- Modify category archive page loop on functions.php
- How to print redirected query string variables to the page?
- Admin-area broken through weird issues
- Check if values exists DB
- How does add_action ‘comment_post’ work?
- Select area and checkbox data is not saving?
- How to modify this function to exclude also the post belonging to a specific category?
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- Suppress errors when using global function
- Understanding responsive imagery
- How to get meta box labels?
- Tags being Inserted in html from plugin PHP not passing through the_content