Inventory_Presser_Admin_Options::add_hooks()

Adds hooks


Return

(void)


Source

File: includes/admin/class-admin-options.php

	public function add_hooks() {
		add_action( 'admin_enqueue_scripts', array( $this, 'scripts_and_styles' ) );
		add_action( 'admin_init', array( $this, 'add_settings' ) );
		add_action( 'admin_menu', array( $this, 'add_options_page' ) );

		// Look for a query variable that triggers Delete All Vehicles.
		add_action( 'admin_init', array( $this, 'detect_manage_vehicles_query_var' ) );

		/**
		 * When the option is updated, check if the additional listings pages
		 * settings changed. If they have, flush permalinks.
		 */
		add_action( 'update_option_' . INVP::OPTION_NAME, array( $this, 'maybe_flush_permalinks' ), 10, 2 );
	}