Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes
CustomMetaBox::order_meta_keys_autofill()
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() 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; }