PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / templates / user-json.php

user-json.php in ActivityPub 3.2.2, at templates/user-json.php

16 lines 552 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $user = \Activitypub\Collection\Users::get_by_id( \get_the_author_meta( 'ID' ) );
3
4 /*
5 * Action triggerd prior to the ActivityPub profile being created and sent to the client
6 */
7 \do_action( 'activitypub_json_author_pre', $user->get__id() );
8
9 \header( 'Content-Type: application/activity+json' );
10 echo $user->to_json(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
11
12 /*
13 * Action triggerd after the ActivityPub profile has been created and sent to the client
14 */
15 \do_action( 'activitypub_json_author_post', $user->get__id() );
16