Automattic\WooCommerce\Abilities

ActionableAbility::prepare_properties │ protected │ WC 1.0

Use the change as the execute callback, and add the extensions input when the feature is on.

Метод класса: ActionableAbility{}

Хуков нет.

Возвращает

array.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->prepare_properties( $args ): array;
$args(массив) (обязательный)
Ability arguments.

Код ActionableAbility::prepare_properties() WC 11.3.0

protected function prepare_properties( array $args ): array {
	$args['execute_callback'] = array( $this, 'execute_change' );
	if ( is_array( $args['input_schema'] ?? null ) && ExtensibleAbilities::is_enabled() ) {
		$args['input_schema'] = $this->add_extensions_input_schema( $args['input_schema'] );
	}
	return parent::prepare_properties( $args );
}