• Resolved Ramzzes

    (@ramzzes)


    In file disable-comments.php please replace

    load_plugin_textdomain( 'disable-comments', false, dirname( plugin_basename( __FILE__ ) ) .  '/languages' );

    on

    add_action('plugins_loaded', function() {
        load_plugin_textdomain( 'disable-comments', false, dirname( plugin_basename( __FILE__ ) ) .  '/languages' );
    });

    as recommended in the documentation
    https://codex.www.ads-software.com/Function_Reference/load_plugin_textdomain

    to support such plugins, as WCM User Language or R3DF Dashboard Language Switcher

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘load_plugin_textdomain wrap in plugins_loaded hook’ is closed to new replies.