-
Notifications
You must be signed in to change notification settings - Fork 81
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.
/**
* 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' );
-
object
$object
The ActivityPub object.
\do_action( 'activitypub_json_pre', $object )
Follow @[email protected] for updates and news.