Skip to content

activitypub_comment_attachments

github-actions[bot] edited this page Jul 29, 2025 · 8 revisions

Filter the attachments for a comment.

Auto-generated Example

add_filter(
   'activitypub_comment_attachments',
    'my_activitypub_comment_attachments_callback',
    10,
    2
);

function my_activitypub_comment_attachments_callback(
    array $attachments,
    WP_Comment $item
) {
    // Your code here.
    return $attachments;
}

Parameters

  • array $attachments The attachments.
  • WP_Comment $item The comment object.

Returns

array The filtered attachments.

Files

\apply_filters( 'activitypub_comment_attachments', $attachments, $this->item )

← All Hooks

Users

Developers

Clone this wiki locally