We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96ff0b commit c2e2e22Copy full SHA for c2e2e22
2 files changed
src/wp-includes/abilities.php
@@ -9,6 +9,8 @@
9
10
declare( strict_types = 1 );
11
12
+require_once __DIR__ . '/abilities/class-wp-posts-abilities.php';
13
+
14
/**
15
* Registers the core ability categories.
16
*
@@ -32,6 +34,14 @@ function wp_register_core_ability_categories(): void {
32
34
'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
33
35
)
36
);
37
38
+ wp_register_ability_category(
39
+ 'post',
40
+ array(
41
+ 'label' => __( 'Post' ),
42
+ 'description' => __( 'Abilities related to the creation and management of posts of all types.' ),
43
+ )
44
+ );
45
}
46
47
@@ -259,4 +269,6 @@ function wp_register_core_abilities(): void {
259
269
),
260
270
261
271
272
273
+ WP_Posts_Abilities::register();
262
274
0 commit comments