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