-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_video_thumbnail_scheduler
github-actions[bot] edited this page Jul 24, 2026
·
1 revision
Filters the callable used to schedule thumbnail generation for video uploads.
Return null to use the built-in Videopack integration.
add_filter(
'mastodon_api_video_thumbnail_scheduler',
function (
Enable_Mastodon_Apps\callable $scheduler = null,
int $attachment_id
) {
// Your code here
return $scheduler;
},
10,
2
);-
Enable_Mastodon_Apps\callable|null$schedulerThumbnail scheduler callback. -
int$attachment_idThe uploaded attachment ID.
\apply_filters( 'mastodon_api_video_thumbnail_scheduler', null, $attachment_id )