Skip to content
Draft
13 changes: 13 additions & 0 deletions src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

declare( strict_types = 1 );

require_once __DIR__ . '/abilities/class-wp-content-abilities.php';

/**
* Registers the core ability categories.
*
Expand All @@ -30,6 +32,14 @@ function wp_register_core_ability_categories(): void {
'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
)
);

wp_register_ability_category(
'content',
array(
'label' => __( 'Content' ),
'description' => __( 'Abilities that retrieve or manage posts and other content.' ),
)
);
}

/**
Expand Down Expand Up @@ -351,4 +361,7 @@ function wp_register_core_abilities(): void {
),
)
);

// Register the content abilities (currently the read-only `core/content`).
( new WP_Content_Abilities() )->register();
}
Loading
Loading