[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/abilities-api/ -> class-wp-ability-category.php (summary)

Abilities API Defines WP_Ability_Category class.

File Size: 216 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  __construct()
  prepare_properties()
  get_slug()
  get_label()
  get_description()
  get_meta()
  __wakeup()
  __sleep()

Functions
Functions that are not part of a class:

__construct( string $slug, array $args )   X-Ref
Constructor.

Do not use this constructor directly. Instead, use the `wp_register_ability_category()` function.

param: string               $slug The unique slug for the ability category.
param: array<string, mixed> $args {

prepare_properties( array $args )   X-Ref
Prepares and validates the properties used to instantiate the ability category.

return: array<string, mixed> $args {
param: array<string, mixed> $args $args {

get_slug()   X-Ref
Retrieves the slug of the ability category.

return: string The ability category slug.

get_label()   X-Ref
Retrieves the human-readable label for the ability category.

return: string The human-readable ability category label.

get_description()   X-Ref
Retrieves the detailed description for the ability category.

return: string The detailed description for the ability category.

get_meta()   X-Ref
Retrieves the metadata for the ability category.

return: array<string,mixed> The metadata for the ability category.

__wakeup()   X-Ref
Wakeup magic method.


__sleep()   X-Ref
Sleep magic method.




Generated : Thu Oct 23 08:20:05 2025 Cross-referenced by PHPXref