-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_status
Alex Kirk edited this page Feb 8, 2025
·
13 revisions
Modify the status data.
add_filter(
'mastodon_api_status',
function (
array $account = null,
int $post_id,
array $data
) {
// Your code here
return $account;
},
10,
3
);
-
array|null
$account
The status data. -
int
$post_id
The object ID to get the status from. -
array
$data
Additional status data.
array|null
The modified status data.
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() )