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
FEATURE_ID
public
mixed
FEATURE_ID
= 'async-product-editor-category-field'
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —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.enqueue_scripts()
Enqueue scripts needed for the product form block editor.
public
enqueue_scripts() : mixed
Return values
mixed —enqueue_styles()
Enqueue styles needed for the rich text editor.
public
enqueue_styles() : mixed