Tribe__Main::add_hooks()

Adds core hooks


Source

File: src/Tribe/Main.php

	public function add_hooks() {
		add_action( 'plugins_loaded', array( 'Tribe__App_Shop', 'instance' ) );
		add_action( 'plugins_loaded', array( $this, 'tribe_plugins_loaded' ), PHP_INT_MAX );

		// Register for the assets to be available everywhere
		add_action( 'tribe_common_loaded', array( $this, 'load_assets' ), 1 );
		add_action( 'init', array( $this, 'load_localize_data' ) );
		add_action( 'plugins_loaded', array( 'Tribe__Admin__Notices', 'instance' ), 1 );
		add_action( 'admin_enqueue_scripts', array( $this, 'store_admin_notices' ) );

		add_filter( 'body_class', array( $this, 'add_js_class' ) );
		add_action( 'wp_footer', array( $this, 'toggle_js_class' ) );
	}