modules = new Modules(); // Instantiate classes. new Kirki(); new L10n( 'kirki', __DIR__ . '/languages' ); // ? Bagus: Do we really need to-reinclude this file? It was included above. // Include the ariColor library. require_once wp_normalize_path( dirname( __FILE__ ) . '/lib/class-aricolor.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude // Add an empty config for global fields. Kirki::add_config( '' ); // ? Bagus: what is this for? Adding empty config. // ? Bagus: Do we really need this line? custom-config.php here is supposed to inside this plugin. Or is this just in case we need it in the future? $custom_config_path = dirname( __FILE__ ) . '/custom-config.php'; $custom_config_path = wp_normalize_path( $custom_config_path ); if ( file_exists( $custom_config_path ) ) { require_once $custom_config_path; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude }