We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP 6.7 caused some weird translation issues, which got me looking into how the translations are handled in the libs.
Long story short, the translation class (I18nExample) is only valid for the themes, not plugins.
I18nExample
loadThemeTextdomain
init
after_setup_theme
load_plugin_textdomain
load_theme_textdomain
I think you could create two examples, one for a theme and another for a plugin, and then in the CLI use one or the other.
The text was updated successfully, but these errors were encountered:
iruzevic
No branches or pull requests
WP 6.7 caused some weird translation issues, which got me looking into how the translations are handled in the libs.
Long story short, the translation class (
I18nExample
) is only valid for the themes, not plugins.loadThemeTextdomain
) should be hooked toinit
, notafter_setup_theme
load_plugin_textdomain
function, notload_theme_textdomain
(there's a difference)I think you could create two examples, one for a theme and another for a plugin, and then in the CLI use one or the other.
The text was updated successfully, but these errors were encountered: