Automattic\WooCommerce\Admin\RemoteInboxNotifications\Transformers

ArrayColumn::transform()publicWC 1.0

Search array value by one of its key.

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

No Hooks.

Return

Mixed.

Usage

$ArrayColumn = new ArrayColumn();
$ArrayColumn->transform( $value, $arguments, $default );
$value(mixed) (required)
a value to transform.
$arguments(stdClass|null)
required arguments 'key'.
Default: null
$default(string|null)
default value.
Default: null

Code of ArrayColumn::transform() WC 7.1.0

public function transform( $value, stdClass $arguments = null, $default = null ) {
	return array_column( $value, $arguments->key );
}