WC_Admin_Pointers::create_product_tutorial()
Pointers for creating a product.
Метод класса: WC_Admin_Pointers{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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 WC 9.5.1
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 ); }