load_plugin_textdomain() Issue
-
Hi, there is a PHP error that appears when using the plugin.
PHP Notice: Function load_plugin_textdomain was called <strong>incorrectly</strong>. Attempted to load translations for the <code>transients-manager</code> domain too early. Translations should be loaded after the <code>after_setup_theme</code> action has fired, to ensure that the current user is already set up. Please see <a href="https://developer.www.ads-software.com/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6099
I could solve the issue with
add_action( 'plugins_loaded', array( $this, 'text_domain' ) );
changing to this
add_action( 'after_setup_theme', array( $this, 'text_domain' ) );
Thanks,
Johann
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.