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:
- What Features would you Most Like to See Added to WordPress? [closed]
- How to keep plugin translations after updates?
- How to declare WooCommerce support in your theme
- Add custom menu item type
- How can I delete options with register_uninstall_hook?
- WordPress Vote Plugin – Vote Once and Track User
- Using the ‘draft_to_publish’ hook (post status transition)
- Convert WordPress posts to products in WooCommerce
- Internationalization and the plugin description
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Setting up WordPress plugin’s page
- Members Only site with Feed Keys
- Please select a file error
- Thumbnail with different sizes
- How to load all plugins CSS after child theme CSS?
- How do I future proof my older WordPress theme?
- Disabling post images for not logged in users
- Override core woocommerce class
- WooCommerce – Where is functions.php?
- Modifying Footnote Plugin for Descriptive Title Attributes
- Date in the URL with The Events Calendar
- Auto add content such as pages upon plugin activation?
- How to set a custom title per language?
- Make id column as AUTO INCREMENT on plugin activation
- Execute a plugin only on post pages
- How to send a mail when a plugin update found?
- WordPress Multisite user activation hook from email
- Notepad sticky plugin
- Create dynamic page content from custom WordPress plugin page
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Retrieving a path when dealing with composer packages
- Warning in Pluggable.php
- Is it possible to use multiple post_name, post_title and post_content?
- Merging Two menus in the backend into one menu
- accessing wp.media api from a tinymce plugin
- Restrict access to content in conjunction with facebook connect & google login
- Which filter affects the ‘entry-title’ post class
- Is W3 Total Cache supposed to delete the local files after they are uploaded to CDN? [closed]
- How do I use wp_editor() in widget form?
- How to create an option page for this simple plugin
- How to reorder and display a feed to be chronological?
- Creating a CSV with PHP inside the plugin directory
- pagination on data fetched using SQL query
- How do I automatically generate pages from a database?
- WordPress plugin won’t show on some themes
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- wp_redirect doen’t work
- Send email with list of active plugins upon activation/deactivation
- How to save plugin custom settings page fields
- wp_insert_term() doesnt insert a term
- How limit user connection?
- HTTP requests start hanging after I try activating all plugins, and only stop when I manually disable the plugins via DB
- Memory Management when developing plug-ins
- How can I list custom post type categories of portfolio
- How to include my Ajax calls in one function instead of calling different ones every time?
- How to log custom plugin error to debug.log file
- Load script only in the admin page
- Using AJAX to run SQL statement and populate dropdown
- wp_footer hook running twice
- How to create admin setting for this small plugin
- How to create a form where you can select multiple recipients, based on a list of website users?
- Unpublished Pages Failing To Appear On Custom Path
- $wpdb->delete not working for me
- How to fix caching issue in PHP data from database
- WPForms Custom Redirect not working
- SASS not showing in customized preloader plugin
- Lock content in WordPress website
- How do I allow a user to purchase an expiring passcode to access part of my website, from my online store, similar to pay-per-view?
- How to securely controlling data without keeping it in postmeta?
- Enqueue plugin for specific pages
- After updating theme & plugin I am getting an error message
- Get Current Post ID in WP Loop For GiveWP
- Does having apply_filters in the middle of an array make a difference?
- URL path image error in ACF (Advanced Custom Field) [closed]
- Unable to activate themes on localhost
- Soflyy WP All Import Custom File Download Issue
- Unmatch plugin from updates?
- Identify if the_post hook is being called from the admin post list
- why my wordpress dont have toolbar like, plugin, themes and other?
- Reorganization of namespaces
- Passing a parameter to filter and action functions
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Plugin Installation Error
- Holding 2 wp_user in the same action (to update billing_email when user_email is updated)
- Strange get_the_* behavior with php 5.4
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- 404 Page when emptying spam or deleting a plugin
- File permissions for wp-minify plugin
- How to declare this function correctly?
- How to show in front End images using Visual Composer attach_images?
- Plugin version number after code rewrite [closed]
- Getting 400 Error in wordpress website
- How can i store cache of wordpress a database request without plugins?
- disabled plugin and now wordpress won’t load
- How to provide page_template path in custom plugin using WordPress
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- WordPress theme development – the template dropdown in Pages and disappeared
- Add custom button to the changeset status in the Customizer