# gutenberg/22.9.0/lib/experimental/content-guidelines/index.php

Gutenberg, version 22.9.0. 21 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/22.9.0/code/lib/experimental/content-guidelines/index.php
- Raw: https://pluginprobe.com/plugins/gutenberg/22.9.0/raw/lib/experimental/content-guidelines/index.php
- Modified: 2026-03-11T16:06:36+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/gutenberg/22.9.0/code/lib/experimental/content-guidelines/index.php#L10-L20`.

```php
<?php
/**
 * Content Guidelines experimental feature.
 *
 * @package gutenberg
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

require_once __DIR__ . '/class-gutenberg-content-guidelines-post-type.php';
require_once __DIR__ . '/class-gutenberg-content-guidelines-rest-controller.php';
require_once __DIR__ . '/class-gutenberg-content-guidelines-revisions-controller.php';

// Register CPT (controllers auto-instantiated via post type args).
add_action( 'init', array( 'Gutenberg_Content_Guidelines_Post_Type', 'register' ) );

// Register post meta at rest_api_init (block registry needs to be available).
add_action( 'rest_api_init', array( 'Gutenberg_Content_Guidelines_Post_Type', 'register_post_meta' ) );

```
