PluginProbe
ActivityPub / 7.9.1
ActivityPub v7.9.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 7.9.1, at includes/class-handler.php

59 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Handler class.
4 *
5 * @package Activitypub
6 */
7
8 namespace Activitypub;
9
10 use Activitypub\Handler\Accept;
11 use Activitypub\Handler\Announce;
12 use Activitypub\Handler\Collection_Sync;
13 use Activitypub\Handler\Create;
14 use Activitypub\Handler\Delete;
15 use Activitypub\Handler\Follow;
16 use Activitypub\Handler\Like;
17 use Activitypub\Handler\Move;
18 use Activitypub\Handler\Quote_Request;
19 use Activitypub\Handler\Reject;
20 use Activitypub\Handler\Undo;
21 use Activitypub\Handler\Update;
22
23 /**
24 * Handler class.
25 */
26 class Handler {
27 /**
28 * Initialize the class, registering WordPress hooks.
29 */
30 public static function init() {
31 self::register_handlers();
32 }
33
34 /**
35 * Register handlers.
36 */
37 public static function register_handlers() {
38 Accept::init();
39 Announce::init();
40 Collection_Sync::init();
41 Create::init();
42 Delete::init();
43 Follow::init();
44 Like::init();
45 Move::init();
46 Quote_Request::init();
47 Reject::init();
48 Undo::init();
49 Update::init();
50
51 /**
52 * Register additional handlers.
53 *
54 * @since 1.3.0
55 */
56 do_action( 'activitypub_register_handlers' );
57 }
58 }
59