container() ) ); /** * Uplink. */ Config::set_container( $container ); Config::set_hook_prefix( 'kadence-starter-templates' ); if ( ! class_exists( '\KadenceWP\KadenceBlocks\App' ) ) { Config::set_auth_cache_expiration( WEEK_IN_SECONDS ); Config::set_token_auth_prefix( 'kadence' ); } Uplink::init(); Register::plugin( 'kadence-starter-templates', 'Kadence Starter Templates', KADENCE_STARTER_TEMPLATES_VERSION, 'kadence-starter-templates/kadence-starter-templates.php', App::class ); add_filter( 'stellarwp/uplink/kadence-starter-templates/prevent_update_check', '__return_true' ); add_filter( 'stellarwp/uplink/kadence-starter-templates/api_get_base_url', static function() { return 'https://licensing.kadencewp.com'; }, 10, 0 ); require_once plugin_dir_path( __FILE__ ) . 'inc/class-starter-import-processes.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/cli/class-cli-commands.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-image-replacer.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-content-remover.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-woo-content-handler.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-color-handler.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-address-replacer.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-content-replacer.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/content-replace/class-donation-form-handler.php'; require_once plugin_dir_path( __FILE__ ) . 'inc/cli/class-plugin-installer.php'; // Initialize CLI Commands new CLI_Commands(); } add_action( 'plugins_loaded', 'kadence_starter_templates_init', 2 ); /** * Load the plugin textdomain */ function kadence_starter_templates_lang() { load_plugin_textdomain( 'kadence-starter-templates', false, basename( dirname( __FILE__ ) ) . '/languages' ); } add_action( 'init', 'kadence_starter_templates_lang' ); /** * The Kadence Starter Templates Application Container. * * @see kadence_starter_templates_init() * * @note kadence_starter_templates_init() must be called before this one. * * @return ContainerInterface * @throws InvalidArgumentException */ function kadence_starter_templates(): ContainerInterface { return App::instance()->container(); }