Skip to content

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.

Auto-generated Example

add_filter(
    'mastodon_api_video_thumbnail_scheduler',
    function (
        Enable_Mastodon_Apps\callable $scheduler = null,
        int $attachment_id
    ) {
        // Your code here
        return $scheduler;
    },
    10,
    2
);

Parameters

  • Enable_Mastodon_Apps\callable|null $scheduler Thumbnail scheduler callback.
  • int $attachment_id The uploaded attachment ID.

Files

\apply_filters( 'mastodon_api_video_thumbnail_scheduler', null, $attachment_id )

Hooks

Clone this wiki locally