OK, my php is a little rusty. Doing a “return” on an array_push does not return the array. So had to change my add_filter
to:
add_filter( 'shake_error_codes', 'custom_add_error_code');
function custom_add_error_code($error_code) {
array_push($error_code, 'gov_email');
return $error_code;
}
Related Posts:
- Send user activation email when programmatically creating user
- Email verification for new users
- Custom user profile, registration, login page with theme
- Why is the reset password key missing in the reset password email?
- Get the password key when using the wp_new_user_notification_email filter
- How to get the ID of the currently logged in user?
- Two functions utilizing registration_errors filter
- How do I add a prefix when a user registers
- How to add custom fields to the all users page
- SMS registration and login [closed]
- Including the necessary functions for a custom ajax registration form
- user_register not triggering with email verification
- Activate User in Code (BuddyPress+bbpress)
- Email verification for new users
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- Associate multiple email addresses with the same user account, so they can log in with either
- How to make and save custom form in custom plugin page?
- Redirect User to custom URL after registering
- Allowing duplicating users with same user_login and user_email
- Using custom IDP with WP
- Problem in plugin debuging in wordpress
- Custom Registration Form and Passwords
- User Registration Moderate
- Registration form Plugin… Email confirmation
- first_name property missing inside register_user action hook
- Create Unique and Customized User ID for Website Members in WordPress
- Making a user platform reachable by a qr code on a pin-back-button [closed]
- What is the advantage of using wp_mail?
- Plugin directory “Last Updated” not changed after initial commit?
- Calling the widget id of a mult-instance widget from inside the widget?
- Do I need to call do_action in my plugin?
- Fatal error: Call to undefined function wp_mail()
- Does WordPress have an Browser Agent?
- How Do I Load My Action Earlier Enough?
- WooCommerce get Shipping Class of product from either the product id or the order after order is completed
- Dequeue script, but still use wp_localize_script to pass vars
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- Filter on the_content ignores shortcodes
- Custom theme sufficient or custom plugin neccessary for this feature set?
- Replacing WordPress menu functionality with a plugin
- Is it possible to load plugin from console with core ?
- Database for development
- PHP library that can merge stylesheet with inline style [closed]
- How to create multiple Gutenberg blocks in one plugin
- How to disable reCaptcha v3 except on Contact Form 7 pages?
- How to get color name in PanelColorSettings in custom Gutenberg block?
- Fetching the value of forms in WordPress AJAX
- Cannot redeclare function error on the same line
- How to add setting section in custom post type [closed]
- Get Current Menu Location inside Nav_Walker
- Append country to ‘pretty’ url but serve same page
- Where to add hooks in a class
- Insert terms for custom taxonomy on plugin activation, or each page load (init hook)
- Adding a brand column to WooCommerce Products
- Custom GET Parameters In Plugin’s Admin Page
- Adding option to Gallery shortcode
- WordPress Search filter to remove possible script injections
- Mixing and Matching – Custom templates in a WordPress plugin
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- Open Graph Object Debugger & url parameters – Page Not Found result
- WordPress class, using add_action to call member function does not work
- random code at the end of file after plugin upload
- How Can I add Fields in wp-option table?
- Where do I put my add_action(… and add_filter(… and do I need to remove them?
- Can’t find where to modify attrbitutes
- ajax recursive calls on wordpress returning answers outsite the function scope
- Add Password Generator on password protected page
- WordPress pages are not published due to External database connection with WPDB class
- How to optimize multiple insert into wordpress database
- How to add custom options for plugin into the add post screen – like yoast seo
- How to find where an object first instantiatiation
- Clean way to initialize plugin in newly-added site when plugin has been network activated?
- Get coordinates of selected area to use in image maps [closed]
- How to deal with different jQuery versions?
- Can I attach a plugin via my add_filter callback contents?
- How to trigger selected option from a clic. (variation product woocommerce)
- WordPress Favicon not Working For Images/Videos/PDFs
- Is “document loaded” different on admin side than public side?
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Show username only if logged in in a else no directly name
- Conditionally check if page is using template from plugin directory
- plugin css is not being applied to the page
- Yoast and another plugin
- Headers already sent on custom plugin (Export function)
- Insert Data into Database
- Handle changed Woocommerce function
- Making Woocommerce optimized for more than 500k products
- wp_enqueue_style don’t register all google fonts
- API WordPress is Limited? Return False
- Add placeholder into contact form 7 recaptcha text field
- To remove rendering of menus and header, plugin or theme?
- add_rewrite_rule not working
- Adding a custom button to WordPress Add Post (and Edit Post too) screen, that can save the post
- How to display custom taxonomy and terms using/creating plugin template
- Add admin settings and options
- mysql_real_escape_string() error using xml2ary in WordPress plugin
- Developing a wordpress.com shortcode [closed]
- Modify a Themes Appearance >> Header admin screen from a plugin
- How can I create a custom plugin to call webapi after user registration?
- Displaying an Uploaded Image as a Custom Avatar in WordPress