PluginProbe
ActivityPub / 9.2.1
ActivityPub v9.2.1
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
← All changes | includes/class-handler.php +51 -13 2.1.09.2.1 View file →
@@ -1,22 +1,23 @@
1 1 <?php
2 +/**
3 + * Handler class.
4 + *
5 + * @package Activitypub
6 + */
7 +
2 8 namespace Activitypub;
3 9
4 -use Activitypub\Handler\Create;
5 -use Activitypub\Handler\Delete;
6 -use Activitypub\Handler\Follow;
7 -use Activitypub\Handler\Undo;
8 -use Activitypub\Handler\Update;
9 -
10 10 /**
11 11 * Handler class.
12 12 */
13 13 class Handler {
14 14 /**
15 - * Initialize the class, registering WordPress hooks
15 + * Initialize the class, registering WordPress hooks.
16 16 */
17 17 public static function init() {
18 18 self::register_handlers();
19 + self::register_outbox_handlers();
19 20 }
20 21
21 22 /**
22 23 * Register handlers.
@@ -21,13 +22,50 @@
21 22 /**
22 23 * Register handlers.
23 24 */
24 25 public static function register_handlers() {
25 - Create::init();
26 - Delete::init();
27 - Follow::init();
28 - Undo::init();
29 - Update::init();
26 + Handler\Accept::init();
27 + Handler\Announce::init();
28 + Handler\Collection_Sync::init();
29 + Handler\Create::init();
30 + Handler\Delete::init();
31 + Handler\Feature_Request::init();
32 + Handler\Follow::init();
33 + Handler\Like::init();
34 + Handler\Move::init();
35 + Handler\Quote_Request::init();
36 + Handler\Reject::init();
37 + Handler\Undo::init();
38 + Handler\Update::init();
30 39
31 - do_action( 'activitypub_register_handlers' );
40 + /**
41 + * Register additional handlers.
42 + *
43 + * @since 1.3.0
44 + */
45 + \do_action( 'activitypub_register_handlers' );
46 + }
47 +
48 + /**
49 + * Register outbox handlers.
50 + */
51 + public static function register_outbox_handlers() {
52 + Handler\Outbox\Add::init();
53 + Handler\Outbox\Announce::init();
54 + Handler\Outbox\Arrive::init();
55 + Handler\Outbox\Block::init();
56 + Handler\Outbox\Create::init();
57 + Handler\Outbox\Delete::init();
58 + Handler\Outbox\Follow::init();
59 + Handler\Outbox\Like::init();
60 + Handler\Outbox\Remove::init();
61 + Handler\Outbox\Undo::init();
62 + Handler\Outbox\Update::init();
63 +
64 + /**
65 + * Register additional outbox handlers.
66 + *
67 + * @since 8.1.0
68 + */
69 + \do_action( 'activitypub_register_outbox_handlers' );
32 70 }
33 71 }