Skip to content

mastodon_api_status

Alex Kirk edited this page Feb 8, 2025 · 13 revisions

Modify the status data.

Auto-generated Example

add_filter(
    'mastodon_api_status',
    function (
        array $account = null,
        int $post_id,
        array $data
    ) {
        // Your code here
        return $account;
    },
    10,
    3
);

Parameters

  • array|null $account The status data.
  • int $post_id The object ID to get the status from.
  • array $data Additional status data.

Returns

array|null The modified status data.

Files

apply_filters( 'mastodon_api_status', null, $post->ID, array() )
apply_filters( 'mastodon_api_status', null, $post->ID, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters(
			'mastodon_api_status',
			null,
			$in_reply_to_id,
			array(
				'comment' => get_comment( $comment_id ),
			)
		)
apply_filters(
			'mastodon_api_status',
			null,
			$in_reply_to_id,
			array(
				'comment' => get_comment( $comment_id ),
			)
		)
apply_filters(
				'mastodon_api_status',
				null,
				$post_id,
				$args
			)
apply_filters(
				'mastodon_api_status',
				null,
				$post_id,
				$args
			)
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )
apply_filters( 'mastodon_api_status', null, $post_id, array() )

Hooks

Clone this wiki locally