id, wc_get_screen_ids() ) ) { return; } $video_map = array( 'wc-settings' => array( 'title' => __( 'General Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6.jsonp?', ), 'wc-settings-general' => array( 'title' => __( 'General Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6.jsonp?', ), 'wc-settings-products' => array( 'title' => __( 'Product Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/lolkan4fxf.jsonp?', ), 'wc-settings-tax' => array( 'title' => __( 'Tax Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/qp1v19dwrh.jsonp?', ), 'wc-settings-tax-standard' => array( 'title' => __( 'Tax Rate Example', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?', ), 'wc-settings-tax-reduced-rate' => array( 'title' => __( 'Tax Rate Example', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?', ), 'wc-settings-tax-zero-rate' => array( 'title' => __( 'Tax Rate Example', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?', ), 'wc-settings-shipping' => array( 'title' => __( 'Shipping Zones', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/95yiocro6p.jsonp?', ), 'wc-settings-shipping-options' => array( 'title' => __( 'Shipping Options', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/9c9008dxnr.jsonp?', ), 'wc-settings-shipping-classes' => array( 'title' => __( 'Shipping Classes', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/tpqg17aq99.jsonp?', ), 'wc-settings-checkout' => array( 'title' => __( 'Checkout Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/65yjv96z51.jsonp?', ), 'wc-settings-checkout-bacs' => array( 'title' => __( 'Bank Transfer (BACS) Payment Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/dh4piy3sek.jsonp?', ), 'wc-settings-checkout-cheque' => array( 'title' => __( 'Check Payment Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/u2m2kcakea.jsonp?', ), 'wc-settings-checkout-cod' => array( 'title' => __( 'Cash on Delivery (COD) Payment Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/8hyli8wu5f.jsonp?', ), 'wc-settings-checkout-paypal' => array( 'title' => __( 'PayPal Standard Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/rbl7e7l4k2.jsonp?', ), 'wc-settings-checkout-paypalbraintree_cards' => array( 'title' => __( 'PayPal by Braintree Payment Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/oyksirgn40.jsonp?', ), 'wc-settings-checkout-stripe' => array( 'title' => __( 'Stripe Payment Method', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/mf975hx5de.jsonp?', ), 'wc-settings-account' => array( 'title' => __( 'Account Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/35mazq7il2.jsonp?', ), 'wc-settings-email' => array( 'title' => __( 'Email Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/svcaftq4xv.jsonp?', ), 'wc-settings-api' => array( 'title' => __( 'API Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq.jsonp?', ), 'wc-settings-api' => array( 'title' => __( 'API Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq.jsonp?', ), 'product' => array( 'title' => __( 'Creating Products', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/fw0477t6wr.jsonp?', ), 'edit-product_cat' => array( 'title' => __( 'Product Categories', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?', ), 'edit-product_tag' => array( 'title' => __( 'Product Tags', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?', ), 'product_attributes' => array( 'title' => __( 'Product Attributes', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?', ), 'wc-status' => array( 'title' => __( 'System Status', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/xdn733nnhi.jsonp?', ), 'wc-reports' => array( 'title' => __( 'Reports', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/6aasex0w99.jsonp?', ), 'edit-shop_coupon' => array( 'title' => __( 'Coupons', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit.jsonp?', ), 'shop_coupon' => array( 'title' => __( 'Coupons', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit.jsonp?', ), 'edit-shop_order' => array( 'title' => __( 'Managing Orders', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee.jsonp?', ), 'shop_order' => array( 'title' => __( 'Managing Orders', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee.jsonp?', ), ); $page = empty( $_GET['page'] ) ? '' : sanitize_title( $_GET['page'] ); $tab = empty( $_GET['tab'] ) ? '' : sanitize_title( $_GET['tab'] ); $section = empty( $_REQUEST['section'] ) ? '' : sanitize_title( $_REQUEST['section'] ); $video_key = $page ? implode( '-', array_filter( array( $page, $tab, $section ) ) ) : $screen->id; // Fallback for sections if ( ! isset( $video_map[ $video_key ] ) ) { $video_key = $page ? implode( '-', array_filter( array( $page, $tab ) ) ) : $screen->id; } // Fallback for tabs if ( ! isset( $video_map[ $video_key ] ) ) { $video_key = $page ? $page : $screen->id; } if ( isset( $video_map[ $video_key ] ) ) { $screen->add_help_tab( array( 'id' => 'woocommerce_guided_tour_tab', 'title' => __( 'Guided Tour', 'woocommerce' ), 'content' => '

' . __( 'Guided Tour', 'woocommerce' ) . ' – ' . esc_html( $video_map[ $video_key ]['title'] ) . '

' . '
', ) ); } $screen->add_help_tab( array( 'id' => 'woocommerce_support_tab', 'title' => __( 'Help & Support', 'woocommerce' ), 'content' => '

' . __( 'Help & Support', 'woocommerce' ) . '

' . '

' . sprintf( __( 'Should you need help understanding, using, or extending WooCommerce, please read our documentation. You will find all kinds of resources including snippets, tutorials and much more.' , 'woocommerce' ), 'https://docs.woocommerce.com/documentation/plugins/woocommerce/?utm_source=helptab&utm_medium=product&utm_content=docs&utm_campaign=woocommerceplugin' ) . '

' . '

' . sprintf( __( 'For further assistance with WooCommerce core you can use the community forum. If you need help with premium extensions sold by WooCommerce, please use our helpdesk.', 'woocommerce' ), 'https://wordpress.org/support/plugin/woocommerce', 'https://woocommerce.com/my-account/tickets/?utm_source=helptab&utm_medium=product&utm_content=tickets&utm_campaign=woocommerceplugin' ) . '

' . '

' . __( 'Before asking for help we recommend checking the system status page to identify any problems with your configuration.', 'woocommerce' ) . '

' . '

' . __( 'System status', 'woocommerce' ) . ' ' . __( 'Community forum', 'woocommerce' ) . ' ' . __( 'WooCommerce helpdesk', 'woocommerce' ) . '

', ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_bugs_tab', 'title' => __( 'Found a bug?', 'woocommerce' ), 'content' => '

' . __( 'Found a bug?', 'woocommerce' ) . '

' . '

' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your system status report.', 'woocommerce' ), 'https://github.com/woocommerce/woocommerce/issues?state=open', 'https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '

' . '

' . __( 'Report a bug', 'woocommerce' ) . ' ' . __( 'System status', 'woocommerce' ) . '

', ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_education_tab', 'title' => __( 'Education', 'woocommerce' ), 'content' => '

' . __( 'Education', 'woocommerce' ) . '

' . '

' . __( 'If you would like to learn about using WooCommerce from an expert, consider following a WooCommerce course offered by one of our educational partners.', 'woocommerce' ) . '

' . '

' . __( 'View education partners', 'woocommerce' ) . '

', ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_onboard_tab', 'title' => __( 'Setup wizard', 'woocommerce' ), 'content' => '

' . __( 'Setup wizard', 'woocommerce' ) . '

' . '

' . __( 'If you need to access the setup wizard again, please click on the button below.', 'woocommerce' ) . '

' . '

' . __( 'Setup wizard', 'woocommerce' ) . '

', ) ); $screen->set_help_sidebar( '

' . __( 'For more information:', 'woocommerce' ) . '

' . '

' . __( 'About WooCommerce', 'woocommerce' ) . '

' . '

' . __( 'WordPress.org project', 'woocommerce' ) . '

' . '

' . __( 'Github project', 'woocommerce' ) . '

' . '

' . __( 'Official themes', 'woocommerce' ) . '

' . '

' . __( 'Official extensions', 'woocommerce' ) . '

' ); } } endif; return new WC_Admin_Help();