You can filter gettext
:
add_filter( 'gettext', function( $translation, $text, $domain )
{
if ( 'woocommerce' === $domain and 'Select a state…' === $text )
return 'Select a province…';
return $translation;
}, 10, 3 );
Note the 3
as last parameter. This ensures you get all three variables passed, so you can replace exactly the text you are looking for.
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- How to rotate the header image per day?
- WooCommerce Checkout page customization [closed]
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Creating Search Engine Friendly URL’s with Word Press
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- Woocommerce – Print Product’s Custom Field In Email
- How Can I limit the visible part of the short-description on the Category page?
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- Change post template the proper way
- How to make my wordpress site responds for 2 domains
- Custom Slider Per Page created
- Admin new order email customization
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- Best collection of code for your 'functions.php' file [closed]
- WordPress objects class reference
- Customizing gallery shortcode in 3.5
- Can You Export Theme Settings From WordPress Multisite?
- Adding custom Javascript to the head tag in Admin
- How do you add pages on a staging server, and then move them over to production
- Any Hook Called When Post Becomes Published?
- Automatically wrap post image in div
- How Can A Widget With Only One Instance Be Defined?
- Theme Twenty Fifteen: Customize Color Scheme Customizer
- How to handle security on a wordpress site? [closed]
- Is it possible to set default values for custom fields in a custom post type while my plugin is being activated?
- WordPress Template not affecting the working, keeps defaulting to the index.php template
- Custom Widget form function common elements
- Copyright messages for a particular set of pages
- Custom Post Type | Fatal Error on register_post_type()
- Reinstall WordPress Without Losing Data
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- WP Northwind for Theme Development?
- how to load the language file in plugin?
- list/consult Taxonomy only for the respective author/creator in dashbboard
- How to insert a sitemap within a subsite when using WordPress multisite
- View Private Published Page with URL Code (no login required)
- How to check if site is created by wordpress? [duplicate]
- Enabling Additional CSS / custom-css
- Child Theme – how to add new widget on a specific place?
- Modify Gallery Output to render differently on a PAGE and a POST
- @font-face is not working in WordPress
- How to Call a static page in WordPress
- Add google org chart to wordpress page
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- How-To add Custom field in WordPress wp-ecommerce Categories?
- Create custom dashboard for Multisite admins
- Send reply with pre-prepared answers
- The function can not create a table on MariaDB server
- Child theme .css files are not overriding their parent .css files
- One WordPress Installation for 2 Domains
- result from custom filter admin table list backend does not work
- Highlight comments of all the site authors
- Set Title from Custom Template
- For a specific theme, how do I build a list of all the possible theme modification names?
- Can I add/replace the WordPress image in the Dashboard
- Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme
- Switch between WordPress websites easy for an end user
- I’d like to be able to programatically setup a site to discourage crawling by search engines
- How to change the wp_upload_dir() path in plugin
- Create a page that dynamically loads data
- How can I apply custom sanitization to new usernames?
- Divi theme: change overlay color from default blue to back [closed]
- How to create custom layouts and static pages in themes for clients
- Calling a save function from a “submit” button
- failing to display a custom font [closed]
- Add a “default sorting” menu to child store pages
- Can’t create new CPTs when menu hidden
- Page flickers in customization mode
- When is the wp-settings-[time] cookie generated?
- Get All Results From Other Users That Share The Same Custom User Meta As Current User
- Can we set a redirection with dynamic content in url?
- How to remove (…) from the post tilte on homepage?
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Trouble with custom login page
- I want to use a product thumbnail completely different than the product image
- How can I edit the WordPress menu link to allow fb: instead of http
- Fixed bottom menu on mobile doesn’t work on search included in Child Theme of Storefront
- Change Dashboard menu position?
- Get site ID from attachment url?
- Flexslider empty slide
- duplicate featured image functionality in custom meta box
- How to automatically pull an information from a form field onto an other page?
- How to create a custom menu for specific user
- Custom Form Input not saving to Database
- Move text from the side of image to below image [closed]
- Translation plugin with default language?
- Custom pages with plugin
- Custom terms in custom category taxonomy
- Customize TinyMCE Buttons
- Setting Custom WordPress “Posts page” AS “Front page”
- How I can add blog in my magento site?
- WordPress Code Access to Restricted Content without Registration
- How to delete unnecessary custom post types in the UI
- How to pre-set WordPress settings for specific posts?
- Instead of Custom CSS Theme CSS is loading