Skip to content

activitypub_get_image_post

github-actions[bot] edited this page Jul 29, 2025 · 10 revisions

Hook into the image retrieval process. After image retrieval.

Auto-generated Example

add_filter(
   'activitypub_get_image_post',
    'my_activitypub_get_image_post_callback',
    10,
    2
);

function my_activitypub_get_image_post_callback(
    int $id,
    string
) {
    // Your code here.
    return $id;
}

Parameters

  • int $id The attachment ID.
  • string $image_size The image size to retrieve. Set to 'large' by default. Other variable names: $image_size

Files

\do_action( 'activitypub_get_image_post', $id, $image_size )

← All Hooks

Users

Developers

Clone this wiki locally