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
- Disable RSS /feed/ endpoints on posts without disabling RSS overall
- Remove meta description on certain pages
- Menu — How to add “current-menu-grand-ancestor” css class
- Use menu link or onClick to set a variable
- Swapping wp_dropdown_categories function with wp_category_checklist
- functions.php is being included twice, creating PHP fatal errors
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Automatically remove a canceled order in Woocommerce
- How to pass arguments to add_action() or retrieve return value of called function?
- Display fields as values in array from external SQL DB
- Only Show Link If div Exists
- How to put a variable in a instance in the widget
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Trying to establish connection to External Database
- Custom Form Processing Issue
- How to stop or remove an action being called inside a function of an extended class
- Passing the custom field values in the wp_get_current_user array function
- Using fwrite() and “a” appends multiple times instead of once
- How to output a PHP file values by shortcode?
- Showing content from one page on another
- How to style options page in dashboard?
- How to insert a single row to WP database table?
- Get date numerical and separate?
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- WSoD being caused by this piece of code
- Converting HTML Template to WordPress Theme
- Set the background to a default image if there isn’t a specified “featured image”
- Is it acceptable to treat a filter like an action?
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- Add a variable in functions.php and call it in single.php
- How to access global variable $menu inside a class function
- Ajax – Call to undefined function get_option()
- Calling directories to load in wordpress
- WordPress add post format support not working
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- wordpress plugin is not activating from widget
- Image media upload metabox
- How to remove the cufon script from Dzonia Lite theme [closed]
- How to remove or change the “W” icon in “My Sites”?
- get a simple array of all of the term names that exist in all taxonomies
- Login/logout in header
- How to display posts by current user in a drop down
- Logged in user ID as post ID
- How does WordPress insert Paragraphs in posts
- WordPress Access allowed to fewer pages till user logs in
- Linking text within textarea of custom meta box
- Detect session/cookie variable in wordpress to prevent access to documents
- Show css depending on activity type in BuddyPress activity-loop [closed]
- only show container with next/prev links if they exist?
- add element with add_action to posts from a specific category ID
- How to combine wordpress_logged_in cookies in one cookie?
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- Change the WP Video Shortcode Output
- Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
- remove wp floating submenu in wp dashboard
- How to put “Read more” link in Custom Excerpt inside p tag?
- Two Different Links for Same Product – WooCommerce [closed]
- ACF: how do I get the fields and its values of a specific group?
- How to store data from multiple forms using ajax and php
- How to control WordPress image metadata (using Imagick)?
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
- Get value from shortcode to do something
- SQL Injection blocked by firewall
- PHP 8, AJAX mail form to function.php doesn’t work
- How do I add custom bulk actions to multiple custom post types?
- How to prevent XSS alter custom global javascript object & methods in WordPress