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