Automattic\WooCommerce\Admin\Features\AsyncProductEditorCategoryField

Init::add_metabox_args()publicWC 1.0

Adds meta_box_cb callback arguments for custom metabox.

Method of the class: Init{}

No Hooks.

Return

Array. $args category taxonomy args.

Usage

$Init = new Init();
$Init->add_metabox_args( $args );
$args(array) (required)
Category taxonomy args.

Init::add_metabox_args() code WC 9.0.1

public function add_metabox_args( $args ) {
	if ( ! isset( $args['meta_box_cb'] ) ) {
		$args['meta_box_cb']          = 'WC_Meta_Box_Product_Categories::output';
		$args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_checkboxes';
	}
	return $args;
}