-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_submit_status_text
github-actions[bot] edited this page Jul 25, 2026
·
12 revisions
Allow modifying the status text before it gets posted.
add_filter(
'mastodon_api_submit_status_text',
function (
string $status,
int $in_reply_to_id = null,
string $visibility
) {
// Your code here
return $status;
},
10,
3
);-
string$statusThe user submitted status text. -
int|null$in_reply_to_idThe ID of the post to reply to. -
string$visibilityThe visibility of the post.
string The potentially modified status text.
apply_filters( 'mastodon_api_submit_status_text', $status_text, $in_reply_to_id, $visibility )