Upgrading from v1

While the changelog (opens new window) is the most comprehensive list of changes, this guide provides high-level overview and organizes changes by category.

Renamed Classes

The following classes have been renamed.

OldWhat to do instead
verbb\comments\services\CommentsServiceverbb\comments\services\Comments
verbb\comments\services\FlagsServiceverbb\comments\services\Flags
verbb\comments\services\ProtectServiceverbb\comments\services\Protect
verbb\comments\services\RenderCacheServiceverbb\comments\services\RenderCache
verbb\comments\services\SecurityServiceverbb\comments\services\Security
verbb\comments\services\SubscribeServiceverbb\comments\services\Subscribe
verbb\comments\services\VotesServiceverbb\comments\services\Votes

Removed Methods

The following methods have been removed.

OldWhat to do instead
Comment::trashUrlUse form instead
Comment::flagUrlUse form instead
Comment::downvoteUrlUse form instead
Comment::upvoteUrlUse form instead
craft.comments.all()Use craft.comments.fetch() instead.
craft.comments.form()Use craft.comments.render() instead.

Previous ← Configuration Next Control Panel →

Get started with Comments

Available for Craft 4. Get it from the plugin store.