Changeset 61602 for trunk/src/wp-includes/abilities-api.php
- Timestamp:
- 02/09/2026 04:59:52 PM (2 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/abilities-api.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/abilities-api.php
r61130 r61602 133 133 * Ability names must follow these rules: 134 134 * 135 * - Include a namespace prefix (e.g., `my-plugin/my-ability`). 135 * - Contain 2 to 4 segments separated by forward slashes 136 * (e.g., `my-plugin/my-ability`, `my-plugin/resource/find`, `my-plugin/resource/sub/find`). 136 137 * - Use only lowercase alphanumeric characters, dashes, and forward slashes. 137 138 * - Use descriptive, action-oriented names (e.g., `process-payment`, `generate-report`). … … 226 227 * @see wp_unregister_ability() 227 228 * 228 * @param string $name The name of the ability. Must be a namespaced string containing 229 * a prefix, e.g., `my-plugin/my-ability`. Can only contain lowercase 230 * alphanumeric characters, dashes, and forward slashes. 229 * @param string $name The name of the ability. Must be the fully-namespaced 230 * string identifier, e.g. `my-plugin/my-ability` or `my-plugin/resource/my-ability`. 231 231 * @param array<string, mixed> $args { 232 232 * An associative array of arguments for configuring the ability. … … 319 319 * 320 320 * @param string $name The name of the ability to unregister, including namespace prefix 321 * (e.g., 'my-plugin/my-ability' ).321 * (e.g., 'my-plugin/my-ability' or 'my-plugin/resource/find'). 322 322 * @return WP_Ability|null The unregistered ability instance on success, `null` on failure. 323 323 */ … … 352 352 * 353 353 * @param string $name The name of the ability to check, including namespace prefix 354 * (e.g., 'my-plugin/my-ability' ).354 * (e.g., 'my-plugin/my-ability' or 'my-plugin/resource/find'). 355 355 * @return bool `true` if the ability is registered, `false` otherwise. 356 356 */ … … 384 384 * 385 385 * @param string $name The name of the ability, including namespace prefix 386 * (e.g., 'my-plugin/my-ability' ).386 * (e.g., 'my-plugin/my-ability' or 'my-plugin/resource/find'). 387 387 * @return WP_Ability|null The registered ability instance, or `null` if not registered. 388 388 */
Note: See TracChangeset
for help on using the changeset viewer.