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
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- How can I log a user out of WordPress before the page loads?
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Woocommerce different URL for every table placed in the restaurant
- Disable Admin Bar Render on Plugin Page
- Pass A Value From Outside To A Plugin Variable
- Built in admin ajax hooks?
- How to add product images using script?
- Woocommerce cart is a non-object inside `admin_post` action [closed]
- How to find out what blocks are added by a plugin
- what the hook for displaying course list page for learndash plugin? [closed]
- Hide Theme options and Customize Admin menu
- What are the benefit in adding hook in the init() hook?
- Make specific products accessible only to a user role in WooCommerce
- How to edit Image layout in single product page in woocommerce on wordpress?
- Woocommerce – Display active variation product price [closed]
- Need Old Version of plugins
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- Internationalization: Not loading plugin translated text
- Where to hook my plugin’s action
- load_theme_textdomain path
- Dropdown menu on custom page with product to choose number of products per page
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Add custom message to the plugins page of WordPress
- Translating long texts with html formatting
- Hooking in to replace the Sidebar/Widget areas
- custom payment gateway in woocommerce failed to connect to remote api server
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- Is it possible make a back-end for WordPress with WordPress?
- Remove ‘Check Compatibility’ from Plugins menu
- Why do plugins often ask to add in to templates?
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- Setting Email locale before retrieving gettext translations
- How to translate WP Blog (search, category etc.)?
- How can I concatenate variables to search results title? [closed]
- Save user total active time after login in wordpress [closed]
- Advanced WordPress plugin activation detection
- Sending customer an email with link to stripe to make payment
- How to return the values from a row where a value occurs for the first time among the rows available?
- How to hook into action/filter call
- Cannot access WP admin because plugin returns 204
- Make 2 different WooCommerce checkout pages?
- How to install a translation for a WP plugin?
- How to automatically activate users after registration without activation email?
- Add hook after content without formatting
- Sold out Label for variable products which are partially sold out
- Using Remove Action Hook in Plugin
- admin_post hook not firing function inside class
- Make downloadable ebook read online without download option
- How to properly enqueue jQuery knob on WordPress without conflict?
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Add custom WordPress admin page with pretty url via code
- How to change WordPress core language using Loco Translate?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- In woocommerce, is it possible to make payment of one customer order by another customer?
- Admin menu hilighting wrong item for CPT
- Tracking sales/conversions in Woocommerce using Google Analytics
- Not displaying Woocommerce product page in lightbox
- Not able to upload Plugins/ Theme from Admin backend
- Change (replace) word in metabox
- Widget logic using woocommerce product category
- WordPress Theme Conflict With Plugin
- How to Save settings of custom tab product page in admin side in a database?
- How to `remove_action` from plugin
- How to add php stylesheet to admin section instead of admin_head hook
- Transition Post status not working
- functions.php conditional output for a single plugin
- Screen Options drop-down does not show
- How to execute init or woocommerce_init only for checkout page
- Create Custom Coupon Type
- Add different sizes packaging boxes to orders plugin
- Can’t use updated variables in handle function
- WordPress website is redirecting on some different shopping page
- A multi-section WordPress store [closed]