WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. slr@alphadigita.com
    Member
    Posted 2 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/');
    }

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

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic