Skip to content

mastodon_api_submit_status

github-actions[bot] edited this page Jul 24, 2026 · 18 revisions

Filter the submitted status.

Auto-generated Example

add_filter(
    'mastodon_api_submit_status',
    function (
        Enable_Mastodon_Apps\Entity\Status $status = null,
        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,
    8
);

Parameters

  • Enable_Mastodon_Apps\Entity\Status|null $status The status data.
  • string $status_text The status text.
  • string|null $in_reply_to_id The ID of the post to reply to.
  • array|null $media_ids The media IDs.
  • string $post_format The post format.
  • string $visibility The visibility.
  • string|null $scheduled_at The scheduled date.
  • WP_REST_Request $request The request object.

Returns

Enable_Mastodon_Apps\Entity\Status|null The status data.

Files

apply_filters( 'mastodon_api_submit_status', null, $status_text, $in_reply_to_id, $media_ids, $post_format, $visibility, $scheduled_at, $request )

Hooks

Clone this wiki locally