-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_json_context
github-actions[bot] edited this page Jul 30, 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.
function my_activitypub_json_context_callback( array $context ) {
// Your code here.
return $context;
}
add_filter( 'activitypub_json_context', 'my_activitypub_json_context_callback' );
-
array
$context
The default ActivityPub JSON-LD context array.
\apply_filters( 'activitypub_json_context', $context )
Follow @[email protected] for updates and news.