public static function init() {

		if ( self::can_switch_themes() ) {
			add_action( 'admin_bar_menu', array( __CLASS__, 'admin_bar_menu' ), 90 );
			add_action( 'wp_ajax_tts_set_theme', array( __CLASS__, 'set_theme' ) );
		}

		load_plugin_textdomain( 'toolbar-theme-switcher', false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/lang' );
	}
public static function init() {

		if ( self::can_switch_themes() ) {
			add_action( 'admin_bar_menu', array( __CLASS__, 'admin_bar_menu' ), 90 );
			add_action( 'wp_ajax_tts_set_theme', array( __CLASS__, 'set_theme' ) );
		}

		load_plugin_textdomain( 'toolbar-theme-switcher', false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/lang' );
	}
public static function init ( ) { if ( self :: can_switch_themes ( ) ) { add_action ( 'admin_bar_menu' , array ( __CLASS__ , 'admin_bar_menu' ) , 90 ) ; add_action ( 'wp_ajax_tts_set_theme' , array ( __CLASS__ , 'set_theme' ) ) ; } load_plugin_textdomain ( 'toolbar-theme-switcher' , false , dirname ( dirname ( plugin_basename ( __FILE__ ) ) ) . '/lang' ) ; }
Sets up hooks that doesn't need to happen early.
Sets up hooks that doesn t need to happen early .