-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_json_context
github-actions[bot] edited this page Aug 18, 2025
·
8 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.
/**
* 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.
*
* @param array $context
* @return array The filtered value.
*/
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 @activitypub.blog@activitypub.blog for updates and news.