芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-pointers.php
id ) { case 'product': $this->create_product_tutorial(); break; case 'woocommerce_page_wc-addons': $this->create_wc_addons_tutorial(); break; } } /** * Pointers for creating a product. */ 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 ); } /** * Pointers for accessing In-App Marketplace. */ public function create_wc_addons_tutorial() { if ( ! isset( $_GET['tutorial'] ) || ! current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } if ( wp_is_mobile() ) { return; // Permit In-App Marketplace Tour on desktops only. } WCAdminAssets::register_script( 'wp-admin-scripts', 'wc-addons-tour', true ); } } new WC_Admin_Pointers();