-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_get_image_pre
github-actions[bot] edited this page Feb 27, 2026
·
13 revisions
Hook into the image retrieval process. Before image retrieval.
/**
* Hook into the image retrieval process. Before image retrieval.
*
* @param int $id
* @param mixed $string
*/
function my_activitypub_get_image_pre_callback( int $id, string ) {
// Your code here.
}
add_action( 'activitypub_get_image_pre', 'my_activitypub_get_image_pre_callback', 10, 2 );-
int$idThe 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 @activitypub.blog@activitypub.blog for updates and news.