WC_Admin_Post_Types::quick_edit()publicWC 1.0

Custom quick edit - form.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->quick_edit( $column_name, $post_type );
$column_name(строка) (обязательный)
Column being shown.
$post_type(строка) (обязательный)
Post type being shown.

Код WC_Admin_Post_Types::quick_edit() WC 8.7.0

public function quick_edit( $column_name, $post_type ) {
	if ( 'price' !== $column_name || 'product' !== $post_type ) {
		return;
	}

	$shipping_class = get_terms(
		'product_shipping_class',
		array(
			'hide_empty' => false,
		)
	);

	include WC()->plugin_path() . '/includes/admin/views/html-quick-edit-product.php';
}