-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_status
github-actions[bot] edited this page Jul 25, 2026
·
38 revisions
Modify the status data.
add_filter(
'mastodon_api_status',
function (
Enable_Mastodon_Apps\Entity\Status $status = null,
int $post_id,
array $data
) {
// Your code here
return $status;
},
10,
3
);-
Enable_Mastodon_Apps\Entity\Status|null$statusThe status data. -
int$post_idThe object ID to get the status from. -
array$dataAdditional status data.
Enable_Mastodon_Apps\Entity\Status|null The modified status data.
apply_filters( 'mastodon_api_status', null, $this->friend_post, 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() )apply_filters( 'mastodon_api_status', null, $post_id, array() )apply_filters( 'mastodon_api_status', null, $post_id, array() )apply_filters( 'mastodon_api_status', $status, 0, 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() )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, $last_status->ID )apply_filters( 'mastodon_api_status', null, $post->post_parent, array() )apply_filters( 'mastodon_api_status', null, $post->post_parent, array() )apply_filters( 'mastodon_api_status', null, $post->ID, array() )