-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_attachment_ids
github-actions[bot] edited this page Jul 25, 2025
·
13 revisions
Filter the attachment IDs for a post.
add_filter(
'activitypub_attachment_ids',
function (
array $media,
WP_Post $item
) {
// Your code here
return $media;
},
10,
2
);
-
array
$media
The media array grouped by type. -
WP_Post
$item
The post object.
array
The filtered attachment IDs.
\apply_filters( 'activitypub_attachment_ids', $media, $this->item )
Follow @[email protected] for updates and news.