updated plugin ActivityPub version 5.8.0

This commit is contained in:
2025-04-29 21:19:06 +00:00
committed by Gitium
parent 19dfd317cc
commit fdfbf76539
166 changed files with 14119 additions and 7163 deletions

View File

@ -0,0 +1,25 @@
<?php
/**
* ActivityPub JSON template.
*
* @package Activitypub
*/
$object = \Activitypub\Query::get_instance()->get_activitypub_object();
/**
* Fires before an ActivityPub object is generated and sent to the client.
*
* @param object $object The ActivityPub object.
*/
\do_action( 'activitypub_json_pre', $object );
\header( 'Content-Type: application/activity+json' );
echo $object->to_json(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
/**
* Fires after an ActivityPub object is generated and sent to the client.
*
* @param object $object The ActivityPub object.
*/
\do_action( 'activitypub_json_post', $object );