-
Notifications
You must be signed in to change notification settings - Fork 9
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.
add_action(
'mastodon_api_media_uploaded',
function (
int $attachment_id,
WP_REST_Request $request
) {
// Your code here
},
10,
2
);-
int$attachment_idThe uploaded attachment ID. -
WP_REST_Request$requestThe REST request.
do_action( 'mastodon_api_media_uploaded', $attachment_id, $request )