Skip to content

activitypub_comment_attachments

github-actions[bot] edited this page Aug 7, 2025 · 8 revisions

Filter the attachments for a comment.

Auto-generated Example

add_filter(
   'activitypub_comment_attachments',
    function(
        array $attachments,
        WP_Comment $item
    ) {
        // Your code here.
        return $attachments;
    },
    10,
    2
);

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