wsoe_admin_help

The WooCommerce Simply Order Export wsoe admin help class.

Defined (1)

The class is defined in the following location(s).

/classes/class-order-export-admin-help.php  
  1. class wsoe_admin_help { 
  2.  
  3. /** 
  4. * Hook in tabs. 
  5. */ 
  6. public function __construct() { 
  7. add_action( "current_screen", array( $this, 'add_tabs' ), 100 ); 
  8.  
  9. function add_tabs() { 
  10.  
  11. $screen = get_current_screen(); 
  12. $wc_screen_id = sanitize_title( __( 'WooCommerce', 'woocommerce-simply-order-export' ) ); 
  13. $wsoe_tab = ( !empty( $_GET['tab'] ) && $_GET['tab'] == 'order_export' ) ? true : false; 
  14.  
  15. if( $screen->id === $wc_screen_id . '_page_wc-settings' && $wsoe_tab ) { 
  16.  
  17. $screen->add_help_tab( array( 
  18. 'id' => 'wsoe_help_tab',  
  19. 'title' => __( 'Order Export', 'woocommerce-simply-order-export' ),  
  20. 'content' => 
  21.  
  22. '<p>' . __( 'Thank you for using <strong>WooCommerce Simply Order Export</strong> plugin :)', 'woocommerce-simply-order-export' ) . '</p>' . 
  23.  
  24. '<p>'. __('Please use following steps to use the plugin.', 'woocommerce-simply-order-export') .'</p>'. 
  25. '<ul>'. 
  26. '<li>'.__( 'Choose the fields you want to export.', 'woocommerce-simply-order-export' ).'</li>'. 
  27. '<li>'.__( 'Click Save Settings button at the bottom of the page.', 'woocommerce-simply-order-export' ).'</li>'. 
  28. '<li>'.__( 'Click Advanced Options to explore more controls.', 'woocommerce-simply-order-export' ).'</li>'. 
  29. '<li>'.__( 'Select the duration for which you want to export orders.', 'woocommerce-simply-order-export' ).'</li>'. 
  30. '<li>'.__( 'Click Export Order button.', 'woocommerce-simply-order-export' ).'</li>'. 
  31. '</ul>' 
  32.  
  33. ) ); 
  34.  
  35. $screen->add_help_tab( array( 
  36. 'id' => 'wsoe_addon_tab',  
  37. 'title' => __( 'Order Export Add-on', 'woocommerce-simply-order-export' ),  
  38. 'content' => 
  39.  
  40. '<p>' . __( 'With <strong>WooCommerce Simply Order Export Add-on</strong>, you can do following things.', 'woocommerce-simply-order-export' ) . '</p>' . 
  41.  
  42. '<ol>'. 
  43. '<li>'.__( 'Export all the possible fields related to order.', 'woocommerce-simply-order-export' ).'</li>'. 
  44. '<li>'.__( 'Reorder the fields, so that exported CSV would contain columns in that order.', 'woocommerce-simply-order-export' ).'</li>'. 
  45. '</ol>'. 
  46.  
  47. '<p><a target="_blank" href="' . 'http://sharethingz.com/woocommerce-simply-order-export-add-on/' . '" class="button button-primary">' . __( 'Purchase Add-on', 'woocommerce-simply-order-export' ) . '</a> <a target="_blank" href="' . 'https://github.com/ankitrox/WooCommerce-Simply-Order-Export-Add-on-Doc/blob/master/README.md' . '" class="button">' . __( 'Add-on Documentation', 'woocommerce-simply-order-export' ) . '</a></p>' 
  48. ) );  
  49.  
  50. $screen->add_help_tab( array( 
  51. 'id' => 'wsoe_scheduler_tab',  
  52. 'title' => __( 'Order Export Scheduler and Logger', 'woocommerce-simply-order-export' ),  
  53. 'content' => 
  54.  
  55. '<p>' . __( 'With <strong>Order Export Scheduler and Logger</strong>plugin, you can do following things.', 'woocommerce-simply-order-export' ) . '</p>' . 
  56.  
  57. '<ol>'. 
  58. '<li>'.__( 'Schedule order export process for future.', 'woocommerce-simply-order-export' ).'</li>'. 
  59. '<li>'.__( 'Maintain log of already exported reports. You can also download those reports either individually or in bulk (zip).', 'woocommerce-simply-order-export' ).'</li>'. 
  60. '</ol>'. 
  61.  
  62. '<p><a target="_blank" href="' . 'http://sharethingz.com/downloads/wsoe-scheduler-logger/' . '" class="button button-primary">' . __( 'Purchase Add-on', 'woocommerce-simply-order-export' ) . '</a> <a target="_blank" href="' . 'https://github.com/ankitrox/Order-Export-Scheduler-and-Logger/blob/master/README.md' . '" class="button">' . __( 'Add-on Documentation', 'woocommerce-simply-order-export' ) . '</a></p>' 
  63. ) );  
  64.