Skip to content

Commit 1b75e1d

Browse files
sandipr942sandipr942
andauthored
Updated Inline Documentation Order (#57)
Co-authored-by: sandipr942 <[email protected]>
1 parent 48c925e commit 1b75e1d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

includes/abilities-api.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
*
1919
* Note: Do not use before the {@see 'abilities_api_init'} hook.
2020
*
21-
* @see WP_Abilities_Registry::register()
22-
*
2321
* @since 0.1.0
2422
*
23+
* @see WP_Abilities_Registry::register()
24+
*
2525
* @param string $name The name of the ability. The name must be a string containing a namespace
2626
* prefix, i.e. `my-plugin/my-ability`. It can only contain lowercase
2727
* alphanumeric characters, dashes and the forward slash.
@@ -63,10 +63,10 @@ function wp_register_ability( string $name, array $properties = array() ): ?WP_A
6363
/**
6464
* Unregisters an ability using Abilities API.
6565
*
66-
* @see WP_Abilities_Registry::unregister()
67-
*
6866
* @since 0.1.0
6967
*
68+
* @see WP_Abilities_Registry::unregister()
69+
*
7070
* @param string $name The name of the registered ability, with its namespace.
7171
* @return ?\WP_Ability The unregistered ability instance on success, null on failure.
7272
*/
@@ -77,10 +77,10 @@ function wp_unregister_ability( string $name ): ?WP_Ability {
7777
/**
7878
* Retrieves a registered ability using Abilities API.
7979
*
80-
* @see WP_Abilities_Registry::get_registered()
81-
*
8280
* @since 0.1.0
8381
*
82+
* @see WP_Abilities_Registry::get_registered()
83+
*
8484
* @param string $name The name of the registered ability, with its namespace.
8585
* @return ?\WP_Ability The registered ability instance, or null if it is not registered.
8686
*/
@@ -91,10 +91,10 @@ function wp_get_ability( string $name ): ?WP_Ability {
9191
/**
9292
* Retrieves all registered abilities using Abilities API.
9393
*
94-
* @see WP_Abilities_Registry::get_all_registered()
95-
*
9694
* @since 0.1.0
9795
*
96+
* @see WP_Abilities_Registry::get_all_registered()
97+
*
9898
* @return \WP_Ability[] The array of registered abilities.
9999
*/
100100
function wp_get_abilities(): array {

0 commit comments

Comments
 (0)