# activitypub/2.3.0/includes/class-handler.php

ActivityPub, version 2.3.0. 34 lines.

- Page: https://pluginprobe.com/plugins/activitypub/2.3.0/code/includes/class-handler.php
- Raw: https://pluginprobe.com/plugins/activitypub/2.3.0/raw/includes/class-handler.php
- Modified: 2023-12-05T13:18:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/activitypub/2.3.0/code/includes/class-handler.php#L10-L20`.

```php
<?php
namespace Activitypub;

use Activitypub\Handler\Create;
use Activitypub\Handler\Delete;
use Activitypub\Handler\Follow;
use Activitypub\Handler\Undo;
use Activitypub\Handler\Update;

/**
 * Handler class.
 */
class Handler {
	/**
	 * Initialize the class, registering WordPress hooks
	 */
	public static function init() {
		self::register_handlers();
	}

	/**
	 * Register handlers.
	 */
	public static function register_handlers() {
		Create::init();
		Delete::init();
		Follow::init();
		Undo::init();
		Update::init();

		do_action( 'activitypub_register_handlers' );
	}
}

```
