Clanbite Social Kit Social Since 1.6.2
apply_filters( 'clanbite_social_kit_user_can_edit_comment', bool $can, object $comment, int $user_id )Filters whether a user may edit a social comment.
Filter PHP
Parameters
$can(bool)Whether the user is the comment's author.
$comment(object)Comment row.
$user_id(int)User ID.
Example
add_filter( 'clanbite_social_kit_user_can_edit_comment', function ( $can, $comment, $user_id ) {
// Change $can here.
return $can;
}, 10, 3 );Defined in inc/Social/Data_Access.php
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |