public static function init() { # Get children (plugins/themes that depend on KC Settings) self::$data['kids'] = apply_filters('kc_settings_kids', array()); # Setup termmeta table self::_setup_termmeta_table(); # Register scripts n styles self::_sns_register(); # Options helpers require_once self::$data['paths']['inc'] . '/options.php'; kcSettings_options::init(); # Include samples (for development) //self::_samples( array('01_plugin', '02_post', '03_term', '04_user', '05_theme', '06_attachment', '07_menu_item', '08_menu_nav') ); # Get all settings self::_bootstrap_settings(); # Backend-only stuff if (is_admin()) { self::_admin_init(); } # Theme customizer if (isset(self::$data['settings']['theme']) && !empty(self::$data['settings'])) { require_once self::$data['paths']['inc'] . '/theme.php'; } }