user-switching.php
public function init_hooks() {
		// Required functionality:
		add_filter( 'user_has_cap',                    array( $this, 'filter_user_has_cap' ), 10, 4 );
		add_filter( 'map_meta_cap',                    array( $this, 'filter_map_meta_cap' ), 10, 4 );
		add_filter( 'user_row_actions',                array( $this, 'filter_user_row_actions' ), 10, 2 );
		add_action( 'plugins_loaded',                  array( $this, 'action_plugins_loaded' ) );
		add_action( 'init',                            array( $this, 'action_init' ) );
		add_action( 'all_admin_notices',               array( $this, 'action_admin_notices' ), 1 );
		add_action( 'wp_logout',                       'user_switching_clear_olduser_cookie' );
		add_action( 'wp_login',                        'user_switching_clear_olduser_cookie' );

		// Nice-to-haves:
		add_filter( 'ms_user_row_actions',             array( $this, 'filter_user_row_actions' ), 10, 2 );
		add_filter( 'login_message',                   array( $this, 'filter_login_message' ), 1 );
		add_filter( 'removable_query_args',            array( $this, 'filter_removable_query_args' ) );
		add_action( 'wp_meta',                         array( $this, 'action_wp_meta' ) );
		add_action( 'wp_footer',                       array( $this, 'action_wp_footer' ) );
		add_action( 'personal_options',                array( $this, 'action_personal_options' ) );
		add_action( 'admin_bar_menu',                  array( $this, 'action_admin_bar_menu' ), 11 );
		add_action( 'bp_member_header_actions',        array( $this, 'action_bp_button' ), 11 );
		add_action( 'bp_directory_members_actions',    array( $this, 'action_bp_button' ), 11 );
		add_action( 'bbp_template_after_user_details', array( $this, 'action_bbpress_button' ) );
	}
public function init_hooks() {
		// Required functionality:
		add_filter( 'user_has_cap',                    array( $this, 'filter_user_has_cap' ), 10, 4 );
		add_filter( 'map_meta_cap',                    array( $this, 'filter_map_meta_cap' ), 10, 4 );
		add_filter( 'user_row_actions',                array( $this, 'filter_user_row_actions' ), 10, 2 );
		add_action( 'plugins_loaded',                  array( $this, 'action_plugins_loaded' ) );
		add_action( 'init',                            array( $this, 'action_init' ) );
		add_action( 'all_admin_notices',               array( $this, 'action_admin_notices' ), 1 );
		add_action( 'wp_logout',                       'user_switching_clear_olduser_cookie' );
		add_action( 'wp_login',                        'user_switching_clear_olduser_cookie' );

		// Nice-to-haves:
		add_filter( 'ms_user_row_actions',             array( $this, 'filter_user_row_actions' ), 10, 2 );
		add_filter( 'login_message',                   array( $this, 'filter_login_message' ), 1 );
		add_filter( 'removable_query_args',            array( $this, 'filter_removable_query_args' ) );
		add_action( 'wp_meta',                         array( $this, 'action_wp_meta' ) );
		add_action( 'wp_footer',                       array( $this, 'action_wp_footer' ) );
		add_action( 'personal_options',                array( $this, 'action_personal_options' ) );
		add_action( 'admin_bar_menu',                  array( $this, 'action_admin_bar_menu' ), 11 );
		add_action( 'bp_member_header_actions',        array( $this, 'action_bp_button' ), 11 );
		add_action( 'bp_directory_members_actions',    array( $this, 'action_bp_button' ), 11 );
		add_action( 'bbp_template_after_user_details', array( $this, 'action_bbpress_button' ) );
	}
public function init_hooks ( ) { // Required functionality: add_filter ( 'user_has_cap' , array ( $ this , 'filter_user_has_cap' ) , 10 , 4 ) ; add_filter ( 'map_meta_cap' , array ( $ this , 'filter_map_meta_cap' ) , 10 , 4 ) ; add_filter ( 'user_row_actions' , array ( $ this , 'filter_user_row_actions' ) , 10 , 2 ) ; add_action ( 'plugins_loaded' , array ( $ this , 'action_plugins_loaded' ) ) ; add_action ( 'init' , array ( $ this , 'action_init' ) ) ; add_action ( 'all_admin_notices' , array ( $ this , 'action_admin_notices' ) , 1 ) ; add_action ( 'wp_logout' , 'user_switching_clear_olduser_cookie' ) ; add_action ( 'wp_login' , 'user_switching_clear_olduser_cookie' ) ; // Nice-to-haves: add_filter ( 'ms_user_row_actions' , array ( $ this , 'filter_user_row_actions' ) , 10 , 2 ) ; add_filter ( 'login_message' , array ( $ this , 'filter_login_message' ) , 1 ) ; add_filter ( 'removable_query_args' , array ( $ this , 'filter_removable_query_args' ) ) ; add_action ( 'wp_meta' , array ( $ this , 'action_wp_meta' ) ) ; add_action ( 'wp_footer' , array ( $ this , 'action_wp_footer' ) ) ; add_action ( 'personal_options' , array ( $ this , 'action_personal_options' ) ) ; add_action ( 'admin_bar_menu' , array ( $ this , 'action_admin_bar_menu' ) , 11 ) ; add_action ( 'bp_member_header_actions' , array ( $ this , 'action_bp_button' ) , 11 ) ; add_action ( 'bp_directory_members_actions' , array ( $ this , 'action_bp_button' ) , 11 ) ; add_action ( 'bbp_template_after_user_details' , array ( $ this , 'action_bbpress_button' ) ) ; }
Sets up all the filters and actions.
Sets up all the filters and actions .