Support » Plugin: Admin Bar Disabler » [Plugin: Admin Bar Disabler] Initialization sequence

  • Resolved


    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/');

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