Automattic\WooCommerce\Abilities

ActionableAbility::prepare_response │ public │ WC 11.3.0

The ability output for the saved object. It must match the output schema of the ability.

Method of the class: ActionableAbility{}

No Hooks.

Returns

mixed.

Usage

$ActionableAbility = new ActionableAbility();
$ActionableAbility->prepare_response( $subject );
$subject(WC_Data) (required)
Saved object.

Changelog

Since 11.3.0 Introduced.

ActionableAbility::prepare_response() code WC 11.3.0

abstract public function prepare_response( $subject );