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
- No Google Analytics code rendered in the header?
- all plug-ins load scripts on all pages
- WordPress Ajax code is not Working
- Is there a maximum length to a WordPress Page?
- WP.org acceptable iframe alternative
- I changed .live() to .on() but change is not reflected on the server
- How to find out whether a plugin is used in pages or posts?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- flush_rewrite_rules() not working with update_option_{$option}
- How to get the particular product quantity in orders in Woocommerce [closed]
- plugin dev – minimum base css specificity?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Tutor LMS problem with Paid Memberships Pro [closed]
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- A server-side hook failed when committing plugin code to SVN
- Custom shortcode for displaying user based on a role parameter
- Help with comments.php
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Plugin Insert Html Code with Shortcode
- Set WordPress Transient Expiration via Variable Value
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- How to remove index meta tag
- don’t call ajax if not plugin page
- How to use the pre_option filter before a plugin loads?
- How I can change the required capability for an admin menu without editing the plugin file?
- Why WP_Screeen doesn’t show all options with admin_body_class
- I changed font of wordpress dashboard but it is slow!
- wp_dequeue_script for a Plugin
- Location dependent rendering of locations? [closed]