Skip to content

activitypub_json_pre

github-actions[bot] edited this page Aug 1, 2025 · 4 revisions

Fires before an ActivityPub object is generated and sent to the client.

Auto-generated Example

/**
 * Fires before an ActivityPub object is generated and sent to the client.
 *
 * @param object $object 
 * @return object The filtered value.
 */
function my_activitypub_json_pre_callback( object $object ) {
    // Your code here.
    return $object;
}
add_filter( 'activitypub_json_pre', 'my_activitypub_json_pre_callback' );

Parameters

  • object $object The ActivityPub object.

Files

\do_action( 'activitypub_json_pre', $object )

← All Hooks

Users

Developers

Clone this wiki locally