WC_Admin_Post_Types::bulk_edit()publicWC 1.0

Custom bulk edit - form.

Method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->bulk_edit( $column_name, $post_type );
$column_name(string) (required)
Column being shown.
$post_type(string) (required)
Post type being shown.

WC_Admin_Post_Types::bulk_edit() code WC 8.7.0

public function bulk_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-bulk-edit-product.php';
}