Forums

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

  1. slr@alphadigita.com
    Member
    Posted 8 months 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
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic