Skip to content

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.

Auto-generated Example

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
);

Parameters

  • string $status The user submitted status text.
  • int|null $in_reply_to_id The ID of the post to reply to.
  • string $visibility The visibility of the post.

Returns

string The potentially modified status text.

Files

apply_filters( 'mastodon_api_submit_status_text', $status_text, $in_reply_to_id, $visibility )

Hooks

Clone this wiki locally