-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_json_pre
github-actions[bot] edited this page Feb 25, 2026
·
21 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
*/
function my_activitypub_json_pre_callback( object $object ) {
// Your code here.
}
add_action( 'activitypub_json_pre', 'my_activitypub_json_pre_callback' );-
object$objectThe ActivityPub object.
\do_action( 'activitypub_json_pre', $object )\do_action( 'activitypub_json_pre', $object )Follow @activitypub.blog@activitypub.blog for updates and news.