NewProductManagementExperience
in package
Loads assets related to the new product management experience page.
Table of Contents
- TOGGLE_OPTION_NAME = 'woocommerce_new_product_management_enabled'
- Option name used to toggle this feature.
- __construct() : mixed
- Constructor
- enqueue_styles() : mixed
- Enqueue styles needed for the rich text editor.
- maybe_show_disabled_notice() : mixed
- Maybe show disabled notice.
- update_edit_product_link() : string
- Update the edit product links when the new experience is enabled.
Constants
TOGGLE_OPTION_NAME
Option name used to toggle this feature.
public
mixed
TOGGLE_OPTION_NAME
= 'woocommerce_new_product_management_enabled'
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —enqueue_styles()
Enqueue styles needed for the rich text editor.
public
enqueue_styles() : mixed
Return values
mixed —maybe_show_disabled_notice()
Maybe show disabled notice.
public
maybe_show_disabled_notice() : mixed
Return values
mixed —update_edit_product_link()
Update the edit product links when the new experience is enabled.
public
update_edit_product_link(string $link, int $post_id) : string
Parameters
- $link : string
-
The edit link.
- $post_id : int
-
Post ID.