Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes

CustomMetaBox::order_meta_keys_autofill()publicWC 1.0

Compute keys to display in autofill when adding new meta key entry in custom meta box. Currently, returns empty keys, will be implemented after caching is merged.

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

Хуков нет.

Возвращает

Массив|Разное. Array of keys to display in autofill.

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

$CustomMetaBox = new CustomMetaBox();
$CustomMetaBox->order_meta_keys_autofill( $keys, $order );
$keys(массив|null) (обязательный)
Keys to display in autofill.
$order(\WP_Post|\WC_Order) (обязательный)
Order object.

Код CustomMetaBox::order_meta_keys_autofill() WC 8.3.1

public function order_meta_keys_autofill( $keys, $order ) {
	if ( is_a( $order, \WC_Order::class ) ) {
		return array();
	}

	return $keys;
}