Skip to content

mastodon_api_media_uploaded

github-actions[bot] edited this page Jul 24, 2026 · 1 revision

Fires after a media attachment was uploaded through the Mastodon API.

Auto-generated Example

add_action(
    'mastodon_api_media_uploaded',
    function (
        int $attachment_id,
        WP_REST_Request $request
    ) {
        // Your code here
    },
    10,
    2
);

Parameters

  • int $attachment_id The uploaded attachment ID.
  • WP_REST_Request $request The REST request.

Files

do_action( 'mastodon_api_media_uploaded', $attachment_id, $request )

Hooks

Clone this wiki locally