Admin Bar Disabler
[resolved] Initialization sequence (2 posts)

  1. slr@alphadigita.com
    Posted 4 years ago #

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


  2. Scott Kingsley Clark
    Plugin Author

    Posted 4 years ago #

    Updated on my side, will update the plugin on w.org during next bug fix release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin Bar Disabler
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic