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

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

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