-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_edit_status
github-actions[bot] edited this page Jul 24, 2026
·
20 revisions
Filter the edited status.
add_filter(
'mastodon_api_edit_status',
function (
Enable_Mastodon_Apps\Entity\Status $status = null,
int $post_id,
string $status_text,
string $in_reply_to_id = null,
array $media_ids = null,
string $post_format,
string $visibility,
string $scheduled_at = null,
WP_REST_Request $request
) {
// Your code here
return $status;
},
10,
9
);-
Enable_Mastodon_Apps\Entity\Status|null$statusThe status data. -
int$post_idThe post ID to edit. -
string$status_textThe status text. -
string|null$in_reply_to_idThe ID of the post to reply to. -
array|null$media_idsThe media IDs. -
string$post_formatThe post format. -
string$visibilityThe visibility. -
string|null$scheduled_atThe scheduled date. -
WP_REST_Request$requestThe request object.
Enable_Mastodon_Apps\Entity\Status|null The status data.
apply_filters( 'mastodon_api_edit_status', null, $post_id, $status_text, $in_reply_to_id, $media_ids, $post_format, $visibility, $scheduled_at, $request )