PluginProbe
ActivityPub / 2.4.0
ActivityPub v2.4.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
activitypub / includes / class-handler.php

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

36 lines 636 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\Undo;
9 use Activitypub\Handler\Update;
10
11 /**
12 * Handler class.
13 */
14 class Handler {
15 /**
16 * Initialize the class, registering WordPress hooks
17 */
18 public static function init() {
19 self::register_handlers();
20 }
21
22 /**
23 * Register handlers.
24 */
25 public static function register_handlers() {
26 Announce::init();
27 Create::init();
28 Delete::init();
29 Follow::init();
30 Undo::init();
31 Update::init();
32
33 do_action( 'activitypub_register_handlers' );
34 }
35 }
36