WooCommerce is heavily localised, so you can make use of WordPress’ localisation functions to change its messages.
add_filter('gettext', 'wpse_124400_woomessages', 10, 3);
/**
* change some WooCommerce labels
* @param string $translation
* @param string $text
* @param string $domain
* @return string
*/
function wpse_124400_woomessages($translation, $text, $domain) {
if ($domain == 'woocommerce') {
if ($text == 'Cart updated.') {
$translation = 'Basket updated.';
}
}
return $translation;
}
Related Posts:
- Use Notepad++ as HEX-Editor
- Creating 20,000 Posts or Pages using a .csv file?
- How to transfer a WordPress blog to a different domain?
- Change Page’s Tag Using functions.php File
- Help making my pagination plugin better
- Having Multiple authors for the same WordPress Plugin
- How to update plugin without overwrite custom code
- WP get_permalink Return Wrong URL
- Pass A Value From Outside To A Plugin Variable
- WordPress Plugin for One-Time Event Registration? [closed]
- Remove toolbar option (and set to default to no) in user profile
- [Plugin: Posts 2 Posts] reciprocal connections
- Add query string to plugin URL
- How to add a privacy-checkbox in comment-template?
- Can plugin variables cause conflict?
- Events plugin for theater (event = performance of a production)
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- What are the benefit in adding hook in the init() hook?
- Force [wordpress_social_login] shortcode to display where it is embedded [closed]
- How to hide plugin from WordPress Multisite admin plugin list
- Unable to install theme recommended plugins on Multisite
- Getting selected (highlighted) html from the Visual Editor on Edit Post page?
- Accidentally Broke Site (Please Help) [closed]
- Add custom message to the plugins page of WordPress
- How to redirect to edit.php page after saving the post,product and showing the message “post saved “
- Apple push notification doesn’t work
- How to query the custom fields by language?
- WordPress Ajax Posting from App
- Is any gallery plugin available to generate galleries from existing uploaded images? [closed]
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Any recommendation on how to manage ads?
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Conditional attributes and logic per product category
- Why Is This Code Causing The Admin Bar to Disappear?
- How create Group Blogs based on user created Groups
- Displaying Custom Sidebar Without Modifying Theme’s Core File?
- Echo user id of users in seperate table
- How to upload multiple files/images when developing a wordpress plugin?
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- How to tell which one of my plugins are paid or free?
- Would Gutenberg be considered a PlugIn?
- Is there a specific term for Plugins that are specified in a WordPress Post using Comments?
- Check if variable is set in filter
- White screen after plugins upgrade
- Child Themes and Updating Parent Theme
- How to write “alt” tag in image for wordpress code?
- How do I rename a category in the menu bar only?
- A plugin that downloads other plugins
- How to use template_include hook with form submission?
- Large amount image data transfer
- CMB2 field not showing on front end category page
- is it possible to hook every page style?
- translate “load more” button
- Redirect logged in user to somepage on every page view?
- I need a lightbox plugin that will apply to gallery [closed]
- Override translation of 1 word
- How to add a link to our wp.org profile from wordpress.org plugin page?
- How can I remove the welcome message generated by the New User Approve plugin?
- how to make a wplang for network fill automatically
- Adding a Tag Parameter / Filter to My Shortcode
- How to write to the plugin’s directory?
- Modify pages widget and make a plugin?
- Edit all $wp_scripts at once to $in_footer = false
- Ajax call not working in wordpress through a plugin
- Custom plugin places html head content in body
- Setting Author on CPT
- Cannot run script properly with my custom plugin
- Cookie value changes back to previous value after changing
- HTTP Error upload ( localhost )
- Hide Plugin Custom Post Type Menu Link
- Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
- Highlight admin menu items that are parent of existing core items
- How to create algorithm for ordering posts in WordPress?
- Set up new WordPress domain using unclear files
- Getting all woocommerce products from REST API call in plugin
- WP Rest Api GET method restriction on route, but POST method also works
- Cannot install plugins
- how does a plugin get active in wordpress
- How do I run my custom function in my plugin when a wordpress user is deleted?
- Page Contents showing in Footer Area
- Update (a function) post’s featured image as soon as $image_url changes
- Widget logic using woocommerce product category
- Using activated_plugin to run code
- Surviving WordPress and plugin updates
- How to order users alphabetically by name? in plugin UPME
- Space in WordPress Attribute Causing Problems
- Is it possible to setup Category wise Subsciption?
- WordPress Background Audio – Continous AutoPlay
- Why won’t the Comprehensive Google Map Plugin load?
- How to change a specific page to custom page?
- Being notified when some YouTube video in some post becomes unavailable
- How use Dynamic hyperlink on each wordpress post?
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- _e in wordpress +
- How do I activate my child theme, as I do not see it in developer tools
- How to execute init or woocommerce_init only for checkout page
- wordpress jquery is not defined because the head tag is empty
- Questions about using Disqus or Jetpack for comments [closed]
- Any plugin/theme available which suits my requirement? [closed]
- Display Any Field fromAdmin Panel in Frontend via Shortcode?