Skip to content

activitypub_comment_attachment_ids

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

Filter the attachment IDs for a comment.

Auto-generated Example

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

Parameters

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

Returns

array The filtered attachment IDs.

Files

\apply_filters( 'activitypub_comment_attachment_ids', $media, $this->item )

Hooks

Users

Developers

Clone this wiki locally