-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_json_context
github-actions[bot] edited this page Jul 29, 2025
·
9 revisions
Filters the ActivityPub JSON-LD context.
This filter allows developers to modify or extend the JSON-LD context used in ActivityPub responses. The context defines the vocabulary and terms used in the ActivityPub JSON objects.
add_filter(
'activitypub_json_context',
'my_activitypub_json_context_callback'
);
function my_activitypub_json_context_callback( array $context ) {
// Your code here.
return $context;
}
-
array
$context
The default ActivityPub JSON-LD context array.
\apply_filters( 'activitypub_json_context', $context )
Follow @[email protected] for updates and news.