-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_status_context
github-actions[bot] edited this page Jul 24, 2026
·
20 revisions
Get the status context (ancestors and descendants).
add_filter(
'mastodon_api_status_context',
function (
array,
int $context_post_id,
string $url
) {
// Your code here
return array;
},
10,
3
);-
array$context The context with 'ancestors' and 'descendants' arrays. Other variable names:$context -
int$context_post_idThe post ID to get context for. -
string$urlThe permalink of the post.
array The context with 'ancestors' and 'descendants' arrays.
apply_filters( 'mastodon_api_status_context', $context, $context_post_id, $url )