modules = new Kirki_Modules(); Kirki::$url = plugins_url( '', __FILE__ ); // Instantiate classes. new Kirki(); new Kirki_L10n(); // Include deprecated functions & methods. require_once wp_normalize_path( dirname( __FILE__ ) . '/deprecated/deprecated.php' ); // Include the ariColor library. require_once wp_normalize_path( dirname( __FILE__ ) . '/lib/class-aricolor.php' ); // Add an empty config for global fields. Kirki::add_config( '' ); $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; } // Add upgrade notifications. require_once wp_normalize_path( dirname( __FILE__ ) . '/upgrade-notifications.php' ); /** * To enable tests, add this line to your wp-config.php file (or anywhere alse): * define( 'KIRKI_TEST', true ); * * Please note that the example.php file is not included in the wordpress.org distribution * and will only be included in dev versions of the plugin in the github repository. */ if ( defined( 'KIRKI_TEST' ) && true === KIRKI_TEST && file_exists( dirname( __FILE__ ) . '/example.php' ) ) { include_once dirname( __FILE__ ) . '/example.php'; }