WooCommerce Code Reference

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

Methods

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.

Return values
string