# activitypub/8.2.1/patterns/author-header.php

ActivityPub, version 8.2.1. 28 lines.

- Page: https://pluginprobe.com/plugins/activitypub/8.2.1/code/patterns/author-header.php
- Raw: https://pluginprobe.com/plugins/activitypub/8.2.1/raw/patterns/author-header.php
- Modified: 2026-03-05T08:08:28+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/8.2.1/code/patterns/author-header.php#L10-L20`.

```php
<?php
/**
 * Author Header with Follow pattern.
 *
 * @package Activitypub
 */

\register_block_pattern(
	'activitypub/author-header',
	array(
		'title'         => _x( 'Author Header with Follow', 'Block pattern title', 'activitypub' ),
		'categories'    => array( 'activitypub' ),
		'keywords'      => array(
			_x( 'author', 'Block pattern keyword', 'activitypub' ),
			_x( 'header', 'Block pattern keyword', 'activitypub' ),
			_x( 'fediverse', 'Block pattern keyword', 'activitypub' ),
			_x( 'follow', 'Block pattern keyword', 'activitypub' ),
		),
		'description'   => _x( 'Compact author header with follow button.', 'Block pattern description', 'activitypub' ),
		'viewportWidth' => 1200,
		'content'       => '<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
	<!-- wp:activitypub/follow-me {"selectedUser":"inherit"} /-->
</div>
<!-- /wp:group -->',
	)
);

```
