WC_Admin_Pointers::create_product_tutorial()
Pointers for creating a product.
Method of the class: WC_Admin_Pointers{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Admin_Pointers = new WC_Admin_Pointers(); $WC_Admin_Pointers->create_product_tutorial();
WC_Admin_Pointers::create_product_tutorial() WC Admin Pointers::create product tutorial code WC 8.7.0
public function create_product_tutorial() { if ( ! isset( $_GET['tutorial'] ) || ! current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } global $wp_post_types; if ( ! isset( $wp_post_types ) ) { return; } $labels = $wp_post_types['product']->labels; $labels->add_new = __( 'Enable guided mode', 'woocommerce' ); WCAdminAssets::register_script( 'wp-admin-scripts', 'product-tour', true ); }