You can filter 'gettext'
.
Sample code, not tested:
add_filter( 'gettext', 'wpse_65085_change_error_messages', 10, 3 );
function wpse_65085_change_error_messages( $translated, $text, domain )
{
if ( 'default' !== $domain )
{
return $translated;
}
switch( $text )
{
case 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).':
return __( 'Use whatever you want', 'your_plugin_text_domain' );
// more cases here.
default:
return $translated;
}
}
Related Posts:
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- Filter the URL of next_posts_link & previous_posts_link
- How to Change the WordPress Locale with the ‘locale’ Filter?
- what is __return_false in filters
- Passing Additional Parameters to add_filter Callable
- How can I add an Author filter to the Media Library?
- Modify WordPress Rest Api Request/Response
- Custom theme hooks / filters – passing arguments
- Change upload directory on custom plugin page
- What params are available with the_content filter?
- How to hook wp_list_pages?
- Don’t replace “|” with Empty String (“”) when generating slugs from title
- apply_filters(‘the_content’, $content) alternative
- How to use the_excerpt in a filter hook?
- Add wrapper to only youtube videos via embed_oembed_html filter function
- Changing document title only on a custom page template
- Shortcodes not resolved in AJAX call response
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Ajax, filters and shortcodes
- wp_link_pages output appears twice
- Multiple Ajax Data Action
- Add filter to wp_dropdown_pages() or wp_dropdown_categories() – no select container?
- Hook different functions to the same filter conditionally OR Pass additional arguments to existing filter?
- How do I pass the value from a foreach loop to an add_filter function? [closed]
- Change WordPress RSS link with filter?
- Search results sorted by post types
- How do I replace a render_callback function for a block?
- check if FILTER(“the_content”) is being executed in `the_post()`
- Change Password Strength Indicator names?
- Apply the_content filter, but prevent other hooked actions
- Can the wp_filter object hold multiple values with the same key
- apply_filters/do_action tag characters limit
- Limit RSS feed to previous calendar month
- Add Defer Attributes to WordPress Scripts with consistent versioning
- How to stop wrapping comments in P tag
- How to modify core when there is no hook?
- Is this the proper way of switching the “Edit My Profile” link with my BuddyPress “Extended Profile” link?
- String regex match replace for role ‘contributor’ only
- Can plugins that filter post contents work on posts from Word 2007?
- html tags in gettext hook get escaped
- How to remove action with slashes and arrows?
- Set default terms for new posts / CPTs
- Get .subsubsub count of post per status queried using pre_get_posts
- Better extend a class or use add filter/action hooks?
- Adaptive product filters for WooCommerce
- Changing WordPress core without hacking core
- Adding a Clone link to product attributes – post_row_actions() filter, or how to override a Class question
- wp_upload_bits Upload Specific Sizes Only
- Plugin options, presets and filters : can you help me improve my workflow?
- Why does adding a filter to ‘the_title’ break the server?
- Wrapping my head around add_filter
- How to add_filter to an OOP based apply_filter(‘foo::bar’, $a);
- Avoid user registrations with specific email provider
- Help with filter for wp_notify_moderator()
- Change custom post type GUID in RSS
- filter hook to load a different post/page on current post/page
- Conflict calling an add_filter() twice
- Filter for author list in gutenberg core editor
- How would I be able to use a font awesome icon as a user’s avatar?
- Add something after a filter
- add_filter the_content doesn’t work
- Redirect to woocommerce checkout after adding to cart – item already in cart
- `authenticate` filter never gets called
- Add filter unless it is being called under specific function
- Filter / add_action to upgrade.php page
- Is there a filter to programmatically change the HTML tab switching output of the page editor?
- post_orderby filter breaks function
- Disable Remember Me in Login Form
- How do I add a line break to a string that is output by PHP?
- Problem width wp_insert_post_data and Gutenberg block editor
- Counting a WP_Post Object value in an arary, using a filter?
- style_loader_tag not changing stylesheet to preload
- add_filter doesn’t return false?
- List all categories that have results in a query
- Distinguish between page and post in function
- Display posts from today and future in Elementor ‘posts widget’
- Right filter for rewriting page statuscode
- Changing title using filter not working with argument
- Archive Widget – Count only parent posts
- How to filter page title for certain page?
- Displaying posts on a page that have been assigned a value in a database
- Replace Text with hyperlinks
- adding an action inside if condition not working
- Adding filter to an specific page/site direction
- Cutting off excerpt with first sentence
- Change URLs in default WordPress slider to relative from absolute
- Print url to default featured image
- Change add_filter based on Ajax
- What action/filter can be used for modifying the page to be rendered?
- Adding user filter – Not updating data in URL
- check, if any “add_action” function contains string XXXXXXXXX
- How to add more than one custom metadata as filter on the post list page?
- filter wptexturize doesn’t work on old posts titles
- Add Default WordPress Formatting To Data From External SQL Tables?
- Joining tables not working in the post editor page
- Auto append text after the title?
- filter a list by gender
- add_filter(‘the_content’, ‘method’) does not trigger my custom method
- Filter a custom post type by custom field in admin
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields