Technically, woocommerce_cart_link()
is added to the site just before the menu by the artificer_header_cart_link()
function, which is pluggable, meaning you could change that function to call a function that duplicates woocommere_cart_link()
but with the text changed.
However, I think the easiest thing to do is to tap into the gettext filter
which kicks in for every translatable string…. and all of Woo’s themes are fully translatable.
This will change any “My Basket:” string anywhere in the theme to say “My Cart:”
function wpa_109750_change_text( $translated_text, $text, $domain ){
if( $domain == 'woothemes' && $translated_text == 'My Basket:' )
$translated_text="My Cart:";
return $translated_text;
}
add_filter( 'gettext', 'wpa_109750_change_text', 10, 3 );
Related Posts:
- How do I force wp_enqueue_scripts to load at the END of ?
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Add code into on a per page/post basis
- How to remove/hide action links cluttering under specific plugins’ names
- Change My Basket text in the header of WooCommerce Artificer theme
- How to send “Location” header on plugin form submit event?
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- Strip HTML comments from plugins in header/footer
- send_headers don’t work on wordpress multisite
- adding meta data using plugin to top of head
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- How do I create a custom add media button modal?
- Headers already sent when I try to add headers via a shortcode
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Show an image in my header.php
- Headers Content-Security-Policy CSP Major Issue
- How to debug error message: Cannot modify header information
- Object method calling for global $wpdb in header.php
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Know which plugin is calling JS in wp_head()?
- My single.php page does not show the related data to the post which is clicked
- Enqueue stylesheet in plugin for wp-login.php
- AJAX on Front-End Button Click not working – Custom Plugin
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- adding a button to the media uploader
- Custom Login Page — wp_signon Headers Already Sent?
- Adding Plugin Assets to Header
- Skewed / slanted button within elementor [closed]
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- echo get_option in header template
- Convert to shortcode?
- Disable submit button order
- Generate Own Custom CSS Button with icon
- Cannot access WP admin because plugin returns 204
- force jQuery to load in the head
- Edit page header on a custom plugin
- How do i ‘deactivate’ a plugin only on a certain page template?
- how would I include some html in the header section of a wordpress plugin? I get an error
- Share buttons Facebook Twitter, just like wordpress.com without webservice
- How do I fill the Home Description?
- Hook for plugin to insert into entry-meta
- sliding/fading header plugin or approach suggestion
- How to make a slider hearder?
- Upload PlugIn Button is missing
- Prevent WordPress from sending set-cookie http header
- How can I change page content for good once a button is pressed?
- How to change the width of certain paragraph or header blocks?
- Modifying server’s response to API endpoint
- How to fix shifting header after installing speed / cache plugins?
- How to execute certain code on back-end button press?
- Cannot modify header information – headers already sent during plugin activation
- Add Cancel Button to a Custom Meta Box
- Debug in WP backend
- How to overlay a webcomic plugin on top of a header image?
- Set Content-Type header in do_parse_request filter
- how to send two forms with one click (script ninjaforms id)
- “Listen” button on my main post page
- hide load more button if there are no posts left to display
- Primary Menu doesn’t show because of w3 cache
- Insert Plugin on a custom page
- Add Flatr button to Sharing option
- WordPress Settings – Custom Button actions
- Problems with installing and deleting plugins
- WordPress repository forbids me call wp-load.php in non-WordPress file
- How to laod wp_enqueue_style to another header i created my self
- Cannot modify header information – headers already sent by
- How can i add a random redirect button in wordpress? [closed]
- Footer option is missing in Customiser
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- How to properly secure my WordPress installation?
- Is it necessary to translate WordPress key terms when localizing a plugin
- How to edit/delete single row items in a table on my own menu page
- How to create custom embed block in gutenberg wordpress
- How to add css class to a specific set of images?
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- Wp favorite posts get user favorites in profile using buddypress [closed]
- Preferred way of cacheing a value in php
- Internationalization autocomplete JS variable
- Howto accurately position images with maximum flexibility?
- wp_remote_get() returns 403 while file_get_contents() does not
- polylang + category/tag custom language link
- What’s causing this error? “Warning: Invalid argument”
- How to create a post with next buttons
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- BuddyPress activity on edit post for a CPT
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Advanced video gallery plugin needed [closed]
- Is there any plugin to show number of clicks on the link?
- how to resubmit a submitted form with gravity forms plugin
- problem disabling plugin only for mobile
- WordPress hide post from custom post-type on a single page
- Installation failed: 504 – Gateway Timeout
- WordPress on shared server Plugin not working
- How to install jquery dotdotdot plugin for WordPress?
- Plugin Translation project not found
- Manually return false for function_exists
- How to show author’s avatar in the post meta data with plugin `user-avatar`
- WooCommerce product prices not showing up correctly [closed]
- I want create woocommerec match products columns
- How to be Variables and options must be escaped when echo’d?