id, wc_get_screen_ids() ) ) { return; } $video_map = array( 'wc-settings' => array( 'title' => __( 'General Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6?videoFoam=true' ), 'wc-settings-general' => array( 'title' => __( 'General Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6?videoFoam=true' ), 'wc-settings-products' => array( 'title' => __( 'Product Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/lolkan4fxf?videoFoam=true' ), 'wc-settings-tax' => array( 'title' => __( 'Tax Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/qp1v19dwrh?videoFoam=true' ), 'wc-settings-checkout' => array( 'title' => __( 'Checkout Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/65yjv96z51?videoFoam=true' ), 'wc-settings-account' => array( 'title' => __( 'Account Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/35mazq7il2?videoFoam=true' ), 'wc-settings-email' => array( 'title' => __( 'Email Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/svcaftq4xv?videoFoam=true' ), 'wc-settings-api' => array( 'title' => __( 'Webhook Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq?videoFoam=true' ), 'wc-settings-checkout-wc_gateway_paypal' => array( 'title' => __( 'PayPal Standard', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/rbl7e7l4k2?videoFoam=true' ), 'wc-settings-checkout-wc_gateway_simplify_commerce' => array( 'title' => __( 'Simplify Commerce', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/jdfzjiiw61?videoFoam=true' ), 'wc-settings-shipping' => array( 'title' => __( 'Shipping Settings', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/9c9008dxnr?videoFoam=true' ), 'wc-settings-shipping-wc_shipping_free_shipping' => array( 'title' => __( 'Free Shipping', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/po191fmvy9?videoFoam=true' ), 'wc-settings-shipping-wc_shipping_local_delivery' => array( 'title' => __( 'Local Delivery', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/5qjepx9ozj?videoFoam=true' ), 'wc-settings-shipping-wc_shipping_local_pickup' => array( 'title' => __( 'Local Pickup', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/pe95ph0apb?videoFoam=true' ), 'edit-product_cat' => array( 'title' => __( 'Product Categories, Tags, Shipping Classes, & Attributes', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true' ), 'edit-product_tag' => array( 'title' => __( 'Product Categories, Tags, Shipping Classes, & Attributes', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true' ), 'product_attributes' => array( 'title' => __( 'Product Categories, Tags, Shipping Classes, & Attributes', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true' ), 'product' => array( 'title' => __( 'Simple Products', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/ziyjmd4kut?videoFoam=true' ), 'wc-status' => array( 'title' => __( 'System Status', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/xdn733nnhi?videoFoam=true' ), 'wc-reports' => array( 'title' => __( 'Reports', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/6aasex0w99?videoFoam=true' ), 'edit-shop_coupon' => array( 'title' => __( 'Coupons', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit?videoFoam=true' ), 'shop_coupon' => array( 'title' => __( 'Coupons', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit?videoFoam=true' ), 'edit-shop_order' => array( 'title' => __( 'Managing Orders', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee?videoFoam=true' ), 'shop_order' => array( 'title' => __( 'Managing Orders', 'woocommerce' ), 'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee?videoFoam=true' ) ); $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_101_tab', 'title' => __( 'WooCommerce 101', 'woocommerce' ), 'content' => '
' . __( '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' ) . '
' . '' . __( 'WooCommerce Documentation', 'woocommerce' ) . ' ' . __( 'Developer API Docs', 'woocommerce' ) . '
' ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_support_tab', 'title' => __( 'Support', 'woocommerce' ), 'content' => '' . sprintf( __( 'After %sreading the documentation%s, for further assistance you can use the %scommunity forums%s on WordPress.org to talk with other users. If however you are a WooThemes customer, or need help with premium add-ons sold by WooThemes, please %suse our helpdesk%s.', 'woocommerce' ), '', '', '', '', '', '' ) . '
' . '' . __( 'Before asking for help we recommend checking the system status page to identify any problems with your configuration.', 'woocommerce' ) . '
' . '' . __( 'System Status', 'woocommerce' ) . ' ' . __( 'WordPress.org Forums', 'woocommerce' ) . ' ' . __( 'WooThemes Customer Support', 'woocommerce' ) . '
' ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_education_tab', 'title' => __( 'Education', 'woocommerce' ), 'content' => '' . __( 'If you would like to learn about using WooCommerce from an expert, consider following a WooCommerce course ran by one of our educational partners.', 'woocommerce' ) . '
' . '' . __( 'View Education Partners', 'woocommerce' ) . '
' ) ); $screen->add_help_tab( array( 'id' => 'woocommerce_bugs_tab', 'title' => __( 'Found a bug?', 'woocommerce' ), 'content' => '' . 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/woothemes/woocommerce/issues?state=open', 'https://github.com/woothemes/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_onboard_tab', 'title' => __( 'Setup Wizard', 'woocommerce' ), 'content' => '' . __( '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' ) . '
' . '' . '' ); } } endif; return new WC_Admin_Help();