Skip to content

wpt_do_toot

github-actions[bot] edited this page Jun 20, 2026 · 2 revisions

Filter the approval to send a Mastodon Toot.

Auto-generated Example

add_filter(
   'wpt_do_toot',
    function(
        bool $do_toot,
        int|bool $auth,
        int $post_ID,
        string $text
    ) {
        // Your code here.
        return $do_toot;
    },
    10,
    4
);

Parameters

  • bool $do_toot Return false to cancel this Toot.
  • int|bool $auth Author.
  • int $post_ID Post ID.
  • string $text Status update text.

Returns

bool

Files

apply_filters( 'wpt_do_toot', true, $auth, $post_ID, $status_text )

← All Hooks

Clone this wiki locally