Automattic\WooCommerce\Abilities

ActionableAbility::change │ public │ WC 11.3.0

Change the object in memory.

Method of the class: ActionableAbility{}

No Hooks.

Returns

null|\WP_Error. A WP_Error rejects the change, and nothing is saved.

Usage

$ActionableAbility = new ActionableAbility();
$ActionableAbility->change( $subject, $input );
$subject(WC_Data) (required)
Object to change.
$input(array) (required)
Ability input.

Changelog

Since 11.3.0 Introduced.

ActionableAbility::change() code WC 11.3.0

abstract public function change( $subject, array $input );