This problem looks a bit too complicated and localized to come up with a definitive answer, but it looks like an execution order issue. Here are some suggestions what you could check:
- You are using a variable in your translation function. Do not do this.
- I’m not sure where that Woocommerce-action is executed, but it might be executed before WP gets to the
load_textdomain
hook. Not very likely, but not impossible either if it tries to send the mail immediately after the plugin is loaded. - Your
add_action
uses the default priority. Higher or lower might help. - Check the global
$wp_filter
variable to see of some plugin is messing with the locales.
Related Posts:
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Can’t set proper WooCommerce language translation [closed]
- WordPress admin notice in plugin function
- Over write plugin templates
- Woocommerce Shipping module available only for type of products [closed]
- How to prevent action in ajax request, when in admin side?
- ‘wp_login’ action hook not working with wp-login.php file
- Change the backend language of a single plugin
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Filtering WooCommerce Orders by Category
- Add sub menu page in your plugin
- Display Plugin Panels Outside of Admin Areas
- Add item to the woocommerce dashboard menu from a plugin
- WooCommerce: after install hook
- Translations not appended even strings are edited
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- ACF Fields are not showing up on Homepage
- Securing langugae folder
- Display Woocommerce attribute name above product title
- {status}_{post_type} does not run correctly?
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- plugin translations not reflected in admin dashboard
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- Shipping Refund via Stripe Creates New Order Instead of Updating Original Order
- Reduce Drop down Menu Width in WordPress
- Hook (or other way) to find out when another plugin is activated / installed
- Any hook for pre-plugin-update -either bulk or single plugin update
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Add custom message to the plugins page of WordPress
- Two text domains in one plugin
- Gravity Forms plugin: How to use “gform_editor_js” action hook? [closed]
- Edit default comments page in WP Admin
- Use translated taxonomy labels in plugin
- Inserting above the comment template
- All Users > User List > Update User Meta Field Inline
- Insert new user with form submit ‘init’ hook
- Translating long texts with html formatting
- How do I display only the latest post on my home page, while maintaining proper plugin hooks?
- Rotating background images with admin options
- Is there an easy way to flag posts in the admin area?
- How to translate __(”) strings in admin [closed]
- Show an image in my header.php
- Hooking in to replace the Sidebar/Widget areas
- How to get all of the activate_plugin action parameters?
- Modifying the comments section through a plugin regardless of theme
- How to hide some section in WordPress under Post
- Default WordPress WP Editor removing style tags and html tag
- Using a post-signup hook to get user details
- How to enable specific plugin only based around shop manager role?
- Map a custom id to wordpress post id
- Working with .po and .mo files translation
- What are wsm tables for?
- WordPress automatically removes line break
- Why required field not working in Country dropdown in WooCommerce –
- Woocommerce API HTTP Response 401
- Trigger Elementor Popup via code [closed]
- How to use WP-CLI / WC-CLI to bulk import 1000s of products (variable and simple)?
- wp_get_post_terms is difference obj model than the one in rest api response
- Add woocommerce variation images in gallery?
- Calling plugin function inside custom plugin for onclick event
- woocommerce payment gateway callback not firing [closed]
- How to modify WCMP Rest API response?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- WordPress Keeps Logging Out – What Tests Can I Run to Solve This?
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- New databes tables with – WooCommerce – for developers [closed]
- How to send an automated email to the customers when product is added woocommerce
- get current date + 90 days and checking every day
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- woocommerce product countdown not showing in variable product? [closed]
- Change commission_status paid when withdraw_status vendor is completed
- I want to disable Cash on delivery based on product tag in woocommerce Checkout Page [closed]
- Is there a way to create custom product templates based on category on WooCommerce?
- Woocommerce Deposit, then random payments until product paid in full [closed]
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- custom payment gateway in woocommerce failed to connect to remote api server
- How to merge two .PO language files?
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Programmatically Process Order through WooCommerce/Stripe Payment Gateway [closed]
- Replacing a plugin function with a custom renamed function doesn’t work
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- Multiple Billing forms in WooCommerce (one billing form per product)
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Change Product Addon price based on select Variation
- WooCommerce – Maximum qty per line per product
- Get Time Taken By Each Action Hook in WordPress
- Woocommerce Create custom product type with variations
- Facebook Messager Plugin
- Remove /product/ from url. I want only category name then product name
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- WooCommerce specifc variations for specific user role [closed]
- Save custom attributes of product in woocommerce
- Polylang : Interverting languages after development [closed]
- Best place for short bio,image and button [closed]
- trying to get product category image in woo-coomerce