Skip to content

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.

Auto-generated Example

/**
 * 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' );

Parameters

  • array $context The default ActivityPub JSON-LD context array.

Files

\apply_filters( 'activitypub_json_context', $context )

← All Hooks

Users

Developers

Clone this wiki locally