add_hooks() public static method

Add various hooks.
Since: 0.1-dev
public static add_hooks ( )
	/**
	 * private construct to enforce singleton
	 */
	private function __construct() {
		$this->update_settings();

		/**
		 * Include the base provider class here, so that other plugins can also extend it.
		 */
		require_once( 'providers/class.two-factor-provider.php' );

		/**
		 * Include the application passwords system.
		 */
		require_once( 'class.application-passwords.php' );
		Application_Passwords::add_hooks();

		if ( is_admin() ) {
			// Always instantiate enabled providers in admin for use in settings, etc
			add_action( 'init', array( $this, 'get_enabled_provider_instances' ) );
		} else {
			add_action( 'init', array( $this, 'get_all_providers' ) );
		}

		// Sanitize options
		add_filter( "sanitize_option_{$this->_setting_name}", array( $this, 'sanitize_module_input' ) );

		// Reload options after they are saved
		add_action( "add_option_{$this->_setting_name}",         array( $this, 'update_settings' ), null, 0 );
		add_action( "update_option_{$this->_setting_name}",      array( $this, 'update_settings' ), null, 0 );
		add_action( "update_site_option_{$this->_setting_name}", array( $this, 'update_settings' ), null, 0 );

	}
<?php

/**
 * Plugin Name: Application Passwords
 * Plugin URI: http://github.com/georgestephanis/application-passwords/
 * Description: A prototype framework to add application passwords to core.
 * Author: George Stephanis
 * Version: 0.1-dev
 * Author URI: http://stephanis.info
 */
/**
 * Include the application passwords system.
 */
require_once dirname(__FILE__) . '/class.application-passwords.php';
Application_Passwords::add_hooks();
<?php

/**
 * Plugin Name: Application Passwords
 * Plugin URI: http://github.com/georgestephanis/application-passwords/
 * Description: A prototype framework to add application passwords to core.
 * Author: George Stephanis
 * Version: 0.1-dev
 * Author URI: http://stephanis.info
 */
/**
 * Include the application passwords system.
 */
require_once dirname(__FILE__) . '/class.application-passwords.php';
Application_Passwords::add_hooks(plugin_basename(__FILE__));