Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions includes/abilities-api/class-wp-abilities-registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ final class WP_Abilities_Registry {
*
* Do not use this method directly. Instead, use the `wp_register_ability()` function.
*
* @see wp_register_ability()
*
* @since 0.1.0
*
* @see wp_register_ability()
*
* @param string $name The name of the ability. The name must be a string containing a namespace
* prefix, i.e. `my-plugin/my-ability`. It can only contain lowercase
* alphanumeric characters, dashes and the forward slash.
Expand Down Expand Up @@ -175,10 +175,10 @@ public function register( string $name, array $properties = array() ): ?WP_Abili
*
* Do not use this method directly. Instead, use the `wp_unregister_ability()` function.
*
* @see wp_unregister_ability()
*
* @since 0.1.0
*
* @see wp_unregister_ability()
*
* @param string $name The name of the registered ability, with its namespace.
* @return ?\WP_Ability The unregistered ability instance on success, null on failure.
*/
Expand All @@ -204,10 +204,10 @@ public function unregister( string $name ): ?WP_Ability {
*
* Do not use this method directly. Instead, use the `wp_get_abilities()` function.
*
* @see wp_get_abilities()
*
* @since 0.1.0
*
* @see wp_get_abilities()
*
* @return \WP_Ability[] The array of registered abilities.
*/
public function get_all_registered(): array {
Expand All @@ -231,10 +231,10 @@ public function is_registered( string $name ): bool {
*
* Do not use this method directly. Instead, use the `wp_get_ability()` function.
*
* @see wp_get_ability()
*
* @since 0.1.0
*
* @see wp_get_ability()
*
* @param string $name The name of the registered ability, with its namespace.
* @return ?\WP_Ability The registered ability instance, or null if it is not registered.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/abilities-api/class-wp-ability.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ class WP_Ability {
*
* @access private
*
* @see wp_register_ability()
*
* @since 0.1.0
*
* @see wp_register_ability()
*
* @param string $name The name of the ability, with its namespace.
* @param array<string,mixed> $properties An associative array of properties for the ability. This should
* include `label`, `description`, `input_schema`, `output_schema`,
Expand Down