Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
122ac4b
initial
jorgefilipecosta Feb 2, 2026
415c8af
remove defaults to be valid schema
jorgefilipecosta Feb 2, 2026
5f880eb
fix output schemas
jorgefilipecosta Feb 2, 2026
ac35e94
multiple enhacemtns: empty input, additional filters
jorgefilipecosta Feb 3, 2026
088487b
fix 404 return when id does not exist
jorgefilipecosta Feb 3, 2026
513db78
add unit tests
jorgefilipecosta Feb 3, 2026
5d0c744
lint fixes
jorgefilipecosta Feb 5, 2026
f9ae672
include possible meta keys and taxonomies on the schema
jorgefilipecosta Feb 13, 2026
fee6c0a
included missing show_in_abilities on tests
jorgefilipecosta Feb 15, 2026
9033403
make posty type speicific meta overwrite global post
jorgefilipecosta Feb 15, 2026
d48bdcd
make status an array and make permissions match that
jorgefilipecosta Feb 15, 2026
14b5372
fix an issue where meta was case insisitive, add stricted schame vali…
jorgefilipecosta Feb 15, 2026
bd07617
lint fixes
jorgefilipecosta Feb 15, 2026
962be8c
yoda condition
jorgefilipecosta Feb 15, 2026
c388417
remove redundat permission check
jorgefilipecosta Feb 15, 2026
a8879e0
fix schema to support non string meta types
jorgefilipecosta Feb 15, 2026
3b0446a
test object meta value
jorgefilipecosta Feb 15, 2026
c1f173e
add missing doc
jorgefilipecosta Feb 15, 2026
3a945a1
add status sanitization
jorgefilipecosta Feb 15, 2026
cfd4798
add comment related to json encoding
jorgefilipecosta Feb 15, 2026
62fbff7
make meta keys unique
jorgefilipecosta Feb 15, 2026
3720487
don't use strtolower on labels
jorgefilipecosta Feb 15, 2026
0f8738c
improve error messagem
jorgefilipecosta Feb 15, 2026
94792d7
document depth
jorgefilipecosta Feb 15, 2026
e279d0d
make queries required inside query properties
jorgefilipecosta Feb 15, 2026
784b97e
improve format setting code
jorgefilipecosta Feb 15, 2026
d05696e
respect is single on meta
jorgefilipecosta Feb 15, 2026
3d75d34
lint fixes
jorgefilipecosta Feb 15, 2026
124597d
revert format change because of phpcs
jorgefilipecosta Feb 15, 2026
818fd0f
fix comment
jorgefilipecosta Feb 15, 2026
e0bb52c
improve query schema
jorgefilipecosta Feb 15, 2026
cd25859
remove trailing comma
jorgefilipecosta Feb 15, 2026
26069e1
Abilities API: support schema arrays for show_in_abilities meta
jorgefilipecosta Feb 17, 2026
4a23e98
update tests to test agsinst the ability directly
jorgefilipecosta Feb 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

declare( strict_types = 1 );

require_once __DIR__ . '/abilities/class-wp-post-type-abilities.php';
/**
* Registers the core ability categories.
*
Expand All @@ -30,6 +31,14 @@ function wp_register_core_ability_categories(): void {
'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
)
);

wp_register_ability_category(
'post',
array(
'label' => __( 'Post' ),
'description' => __( 'Abilities related to the creation and management of posts of all types.' ),
)
);
}

/**
Expand Down Expand Up @@ -257,4 +266,5 @@ function wp_register_core_abilities(): void {
),
)
);
WP_Post_Type_Abilities::register();
}
Loading
Loading