New and updated in 6.9.0
-
Utility method to retrieve the main instance of the registry class.
Used by 6 functions | Uses 4 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:203 -
Fires when preparing ability categories registry.
Used by 1 function | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:229 -
methodWP_Ability::do_execute()
Executes the ability callback.
-
Validates output data against the output schema.
-
methodWP_Ability::execute()
Executes the ability after input validation and running a permission check.
Used by 0 functions | Uses 12 functions | Source: wp-includes/abilities-api/class-wp-ability.php:769 -
Fires before an ability gets executed, after input validation and permissions check.
-
Fires immediately after an ability finished executing.
-
methodWP_Ability::__wakeup()
Wakeup magic method.
-
methodWP_Ability::__sleep()
Sleep magic method.
-
Manages the registration and lookup of ability categories.
Used by 0 functions | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:20 -
Registers a new ability category.
Used by 0 functions | Uses 6 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:57 -
Filters the ability category arguments before they are validated and used to instantiate the ability category.
Used by 1 function | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:91 -
Unregisters an ability category.
Used by 0 functions | Uses 4 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:121 -
Retrieves a specific metadata item for the ability.
-
Retrieves the list of all registered ability categories.
Used by 0 functions | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:149 -
Normalizes the input for the ability, applying the default value from the input schema when needed.
-
Checks if an ability category is registered.
Used by 3 functions | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:165 -
Validates input data against the input schema.
-
Retrieves a registered ability category.
Used by 0 functions | Uses 4 functions | Source: wp-includes/abilities-api/class-wp-ability-categories-registry.php:181 -
Invokes a callable, ensuring the input is passed through only if the input schema is defined.
-
Checks whether the ability has the necessary permissions.
-
Sleep magic method.
Used by 0 functions | Uses 0 functions | Source: wp-includes/abilities-api/class-wp-ability-category.php:214 -
classWP_Ability
Encapsulates the properties and methods related to a specific ability in the registry.
-
Constructor.
-
Prepares and validates the properties used to instantiate the ability.
-
methodWP_Ability::get_name()
Retrieves the name of the ability, with its namespace.
-
methodWP_Ability::get_label()
Retrieves the human-readable label for the ability.
-
Retrieves the detailed description for the ability.
-
Retrieves the ability category for the ability.
-
Retrieves the input schema for the ability.