public static function init() { // Store options self::$address = get_option(self::ADDRESS_OPTION, false); self::$option_countries = get_option(self::COUNTRIES_OPTION, false); self::$option_states = get_option(self::STATES_OPTION, false); self::$localeconv_options = get_option(self::CURRENCY_FORMAT_OPTION, array()); // Register Settings self::register_settings(); // Help Sections add_action('admin_menu', array(get_class(), 'help_sections')); // Redirect after activation add_action('admin_init', array(__CLASS__, 'redirect_on_activation'), 20, 0); // Check if site is using ssl. // add_action( 'parse_request', array( __CLASS__, 'ssl_check' ), 0, 1 ); // Admin bar add_action('admin_bar_menu', array(get_class(), 'sa_admin_bar'), 62); add_filter('si_localeconv', array(__CLASS__, 'localeconv_options'), 0); }