File: wp-includes/abilities-api/class-wp-ability.php
-
Invokes a callable, ensuring the input is passed through only if the input schema is defined.
-
Checks whether the ability has the necessary permissions.
-
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 11 functions | Source: wp-includes/abilities-api/class-wp-ability.php:598 -
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.
-
Retrieves a specific metadata item for the ability.
-
methodWP_Ability::__sleep()
Sleep magic method.
-
Normalizes the input for the ability, applying the default value from the input schema when needed.
-
Validates input data against the input schema.
-
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.
-
Retrieves the output schema for the ability.
-
methodWP_Ability::get_meta()
Retrieves the metadata for the ability.
-
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.