WordPress.org

Support

Support » Plugins and Hacks » Admin Bar Disabler » [Resolved] [Plugin: Admin Bar Disabler] Initialization sequence

[Resolved] [Plugin: Admin Bar Disabler] Initialization sequence

  • The function load_plugin_textdomain() is called before the locale is correctly set (especially if you use a multi-lingual plugin).

    The function load_plugin_textdomain() should be called in the action ‘plugins_loaded’ as in this code:

    function admin_bar_disabler_init() {
      load_plugin_textdomain('admin-bar-disabler', false, basename(dirname(__FILE__)) . 'languages/');
    }

    http://wordpress.org/extend/plugins/admin-bar-disabler/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Admin Bar Disabler] Initialization sequence’ is closed to new replies.
Skip to toolbar