- 
                Notifications
    You must be signed in to change notification settings 
- Fork 84
activitypub_get_image_post
        github-actions[bot] edited this page Aug 18, 2025 
        ·
        10 revisions
      
    Hook into the image retrieval process. After image retrieval.
/**
 * Hook into the image retrieval process. After image retrieval.
 *
 * @param int $id 
 * @param mixed $string 
 * @return int The filtered value.
 */
function my_activitypub_get_image_post_callback( int $id, string ) {
    // Your code here.
    return $id;
}
add_filter( 'activitypub_get_image_post', 'my_activitypub_get_image_post_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_post', $id, $image_size )Follow @[email protected] for updates and news.