init( __FILE__ ); /** * AI-specific usage tracking. Only track if AI is opted in by user. */ require_once KADENCE_BLOCKS_PATH . 'includes/class-kadence-blocks-ai-events.php'; $ai_events = new Kadence_Blocks_AI_Events(); $ai_events->register(); /** * Uplink. */ UplinkConfig::set_container( $container ); UplinkConfig::set_hook_prefix( 'kadence-blocks' ); UplinkConfig::set_token_auth_prefix( 'kadence' ); UplinkConfig::set_auth_cache_expiration( WEEK_IN_SECONDS ); Uplink::init(); Register::plugin( 'kadence-blocks', 'Kadence Blocks', KADENCE_BLOCKS_VERSION, 'kadence-blocks/kadence-blocks.php', Kadence_Blocks::class ); do_action( 'kadence_blocks_uplink_loaded' ); add_filter( 'stellarwp/uplink/kadence-blocks/prevent_update_check', '__return_true' ); add_filter( 'stellarwp/uplink/kadence-blocks/api_get_base_url', static function () { return 'https://licensing.kadencewp.com'; }, 10, 0 ); } add_action( 'plugins_loaded', 'kadence_blocks_init', 1 ); /** * Load the plugin textdomain */ function kadence_blocks_lang(): void { load_plugin_textdomain( 'kadence-blocks', false, basename( __DIR__ ) . '/languages' ); } add_action( 'init', 'kadence_blocks_lang' );