Dashboard::__construct()


Source

File: classes/Dashboard.php

	public function __construct() {
		/**
		 * Load Select 2
		 */
		add_filter( 'dozent_load_select2', [ $this, 'load_select2' ] );

		add_action( 'wp_ajax_dozent_dashboard_sidebar_toggle', [ $this, 'dozent_dashboard_sidebar_toggle' ] );

		add_filter( 'document_title_parts', [ $this, 'change_document_title' ] );

		//Filter dashboard menu items
		add_filter( 'dozent/dashboard/permalinks', [ $this, 'dashboard_permalinks' ] );

	}