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

ActivityPub, version 7.8.2. 59 lines.

- Page: https://pluginprobe.com/plugins/activitypub/7.8.2/code/includes/class-handler.php
- Raw: https://pluginprobe.com/plugins/activitypub/7.8.2/raw/includes/class-handler.php
- Modified: 2025-11-11T14:42:48+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/7.8.2/code/includes/class-handler.php#L10-L20`.

```php
<?php
/**
 * Handler class.
 *
 * @package Activitypub
 */

namespace Activitypub;

use Activitypub\Handler\Accept;
use Activitypub\Handler\Announce;
use Activitypub\Handler\Collection_Sync;
use Activitypub\Handler\Create;
use Activitypub\Handler\Delete;
use Activitypub\Handler\Follow;
use Activitypub\Handler\Like;
use Activitypub\Handler\Move;
use Activitypub\Handler\Quote_Request;
use Activitypub\Handler\Reject;
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() {
		Accept::init();
		Announce::init();
		Collection_Sync::init();
		Create::init();
		Delete::init();
		Follow::init();
		Like::init();
		Move::init();
		Quote_Request::init();
		Reject::init();
		Undo::init();
		Update::init();

		/**
		 * Register additional handlers.
		 *
		 * @since 1.3.0
		 */
		do_action( 'activitypub_register_handlers' );
	}
}

```
