WooCommerce Code Reference

Init
in package

Loads assets related to the async category field for the product editor.

Table of Contents

FEATURE_ID  = 'async-product-editor-category-field'
__construct()  : mixed
Constructor
add_metabox_args()  : array<string|int, mixed>
Adds meta_box_cb callback arguments for custom metabox.
enqueue_scripts()  : mixed
Enqueue scripts needed for the product form block editor.
enqueue_styles()  : mixed
Enqueue styles needed for the rich text editor.

Constants

Methods

add_metabox_args()

Adds meta_box_cb callback arguments for custom metabox.

public add_metabox_args(array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed>

Category taxonomy args.

Return values
array<string|int, mixed>$args category taxonomy args.