-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_attachment
github-actions[bot] edited this page Jul 30, 2025
·
10 revisions
Filter the attachment for a post.
function my_activitypub_attachment_callback( array $attachment, int $id ) {
// Your code here.
return $attachment;
}
add_filter( 'activitypub_attachment', 'my_activitypub_attachment_callback', 10, 2 );
-
array
$attachment
The attachment. -
int
$id
The attachment ID.
array
The filtered attachment.
\apply_filters( 'activitypub_attachment', $attachment, $id )
Follow @[email protected] for updates and news.