( 'lw_harbor_get_licensed_domain', $version, static function (): string { try { return Config::get_container()->get( Data::class )->get_domain(); } catch ( Throwable $e ) { self::debug_log_throwable( $e, 'Error getting site domain' ); return ''; } } ); \_lw_harbor_global_function_registry( 'lw_harbor_refresh_catalog', $version, static function (): bool { try { $result = Config::get_container()->get( Catalog_Repository::class )->refresh(); if ( is_wp_error( $result ) ) { self::debug_log_wp_error( $result, 'Error refreshing catalog' ); return false; } return true; } catch ( Throwable $e ) { self::debug_log_throwable( $e, 'Error refreshing catalog' ); return false; } } ); } }