Skip to content

Commit a8381b7

Browse files
committed
Improve the documentation based on the review feedback
1 parent a185664 commit a8381b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/abilities-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
* $all_abilities = wp_get_abilities();
6969
*
7070
* // Unregisters when no longer needed.
71-
* wp_unregister_ability( 'my-plugin/analyze-text' );
71+
* wp_unregister_ability( 'my-plugin/export-users' );
7272
*
7373
* ## Best Practices
7474
*
@@ -294,7 +294,7 @@ function wp_register_ability( string $name, array $args ): ?WP_Ability {
294294
/**
295295
* Unregisters an ability from the Abilities API.
296296
*
297-
* Takes a previously registered ability out of the global registry. Use this to
297+
* Removes a previously registered ability from the global registry. Use this to
298298
* disable abilities provided by other plugins or when an ability is no longer needed.
299299
*
300300
* Can be called at any time after the ability has been registered.
@@ -483,7 +483,7 @@ function wp_register_ability_category( string $slug, array $args ): ?WP_Ability_
483483
/**
484484
* Unregisters an ability category.
485485
*
486-
* Takes a previously registered ability category out of the global registry. Use this to
486+
* Removes a previously registered ability category from the global registry. Use this to
487487
* disable ability categories that are no longer needed.
488488
*
489489
* Can be called at any time after the ability category has been registered.

0 commit comments

Comments
 (0)