Init
in package
Loads assets related to the product block editor.
Table of Contents
- __construct() : mixed
- Constructor
- enqueue_scripts() : mixed
- Enqueue scripts needed for the product form block editor.
- enqueue_styles() : mixed
- Enqueue styles needed for the rich text editor.
- is_product_data_view_page() : mixed
- Returns true if we are on a JS powered admin page.
- woocommerce_add_new_products_dashboard() : mixed
- Replaces the default posts menu item with the new posts dashboard.
- woocommerce_products_dashboard() : mixed
- Renders the new posts dashboard page.
- has_data_views_support() : mixed
- Checks for data views support.
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —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
Return values
mixed —is_product_data_view_page()
Returns true if we are on a JS powered admin page.
public
static is_product_data_view_page() : mixed
Return values
mixed —woocommerce_add_new_products_dashboard()
Replaces the default posts menu item with the new posts dashboard.
public
woocommerce_add_new_products_dashboard() : mixed
Return values
mixed —woocommerce_products_dashboard()
Renders the new posts dashboard page.
public
woocommerce_products_dashboard() : mixed
Return values
mixed —has_data_views_support()
Checks for data views support.
private
has_data_views_support() : mixed