blackendcode
Forum Replies Created
-
Forum: Plugins
In reply to: [Redux Framework] Translation Issue with Redux Framework – Custom Text DomainThis error is happening because the Redux plugin is loading config before init, redux is loading itself on plugin_loaded hook which is before init.
This means that if you are using config with translation functions in it you will get always this error. It is bug that need to be solved in Redux itself by the author.
Fix is easy just instead of plugins_loaded hook Author should do this on init hook which is a good way to load configration if Redux want to use transaltion.
Quick workaround for this is to Init Redux config on hook <var>after_setup_theme</var>
Here is oredre how wordpress hooks are triggered. All you need to do is to load Redux after load_textdomain hook.
<var>mu_plugin_loaded</var>
<var>network_plugin_loaded</var>
<var>muplugins_loaded</var> — all must-use plugins are connected.
<var>registered_taxonomy</var>
<var>registered_post_type</var>
<var>plugin_loaded</var>
<var>plugins_loaded</var> — all plugins are plugged in.
<var>sanitize_comment_cookies</var>
<var>setup_theme</var> — before loading the theme functions.php file.
<var>load_textdomain</var>
<var>after_setup_theme</var> — the functions.php theme file is loaded.
<var>auth_cookie_malformed</var>
<var>auth_cookie_valid</var>
<var>set_current_user</var>
<var>init</var>
Note:
This is workaround untill plugin author fix this in the plugin itself.- This reply was modified 5 months, 2 weeks ago by blackendcode.
- This reply was modified 5 months, 2 weeks ago by threadi.