# Pin Comments/Replies

Commenter allows you to pin a message (comment or reply). The pinned message is moved to the top of the comments list and highlighted to draw users’ attention first.

### Enable/Disable

You can easily enable or disable this feature under the **pin** key in the config file.

```
 // commenter.php
 
 /**
 * Ability to pin comment or reply
 */
'pin' => [
    'enable_comment' => true,
    'enable_reply' => false,
],
```

### Permissions&#x20;

The pin functionality is grouped under the **Edit Menu**. Therefore, to pin a message, a user must have permission to manipulate the message (update or delete).

<figure><img src="https://41269445-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNUm3rlVtLJfoxtobXgbA%2Fuploads%2FEeXUSObN5jQvtbU4q0Ar%2FScreenshot%20from%202025-10-27%2011-36-25.png?alt=media&#x26;token=a04615c8-ad24-402b-8bed-f90429f44435" alt=""><figcaption></figcaption></figure>

Next, define the policy. By default, the pin policy is disabled. To enable it, create a custom **policy** class and register it under the `pin-message` **permission** key in the Commenter config file.

```
// commenter.php

'permissions' => [
     ...
    'pin-message' => [MyPinMessagePolicy::class, 'pin'],
],
```
