Skip to content

activitypub_comment_attachment_ids

github-actions[bot] edited this page Jul 30, 2025 · 3 revisions

Filter the attachment IDs for a comment.

Auto-generated Example

function my_activitypub_comment_attachment_ids_callback( array $media, WP_Comment $item ) {
    // Your code here.
    return $media;
}
add_filter( 'activitypub_comment_attachment_ids', 'my_activitypub_comment_attachment_ids_callback', 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 )

← All Hooks

Users

Developers

Clone this wiki locally