We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Filter the attachments for a comment.
/** * Filter the attachments for a comment. * * @param array $attachments * @param WP_Comment $item * @return array The filtered attachments. */ function my_activitypub_comment_attachments_callback( array $attachments, WP_Comment $item ) { // Your code here. return $attachments; } add_filter( 'activitypub_comment_attachments', 'my_activitypub_comment_attachments_callback', 10, 2 );
array
$attachments
WP_Comment
$item
array The filtered attachments.
\apply_filters( 'activitypub_comment_attachments', $attachments, $this->item )
← All Hooks