-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_get_image_pre
github-actions[bot] edited this page Jul 29, 2025
·
10 revisions
Hook into the image retrieval process. Before image retrieval.
add_filter(
'activitypub_get_image_pre',
function (
int $id,
string
) {
// Your code here
return $id;
},
10,
2
);
-
int
$id
The attachment ID. -
string
$image_size The image size to retrieve. Set to 'large' by default. Other variable names:$image_size
\do_action( 'activitypub_get_image_pre', $id, $image_size )
Follow @[email protected] for updates and news.