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