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 / includes / class-handler.php

class-handler.php in ActivityPub 3.2.2, at includes/class-handler.php

41 lines 731 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Activitypub;
3
4 use Activitypub\Handler\Announce;
5 use Activitypub\Handler\Create;
6 use Activitypub\Handler\Delete;
7 use Activitypub\Handler\Follow;
8 use Activitypub\Handler\Like;
9 use Activitypub\Handler\Undo;
10 use Activitypub\Handler\Update;
11
12 /**
13 * Handler class.
14 */
15 class Handler {
16 /**
17 * Initialize the class, registering WordPress hooks
18 */
19 public static function init() {
20 self::register_handlers();
21 }
22
23 /**
24 * Register handlers.
25 */
26 public static function register_handlers() {
27 Announce::init();
28 Create::init();
29 Delete::init();
30 Follow::init();
31 Undo::init();
32 Update::init();
33
34 if ( ! ACTIVITYPUB_DISABLE_REACTIONS ) {
35 Like::init();
36 }
37
38 do_action( 'activitypub_register_handlers' );
39 }
40 }
41