bws_help_tab

The Google Sitemap by BestWebSoft bws help tab function.

Description

bws_help_tab( $screen, $args ); 

Parameters (2)

0. $screen
The screen.
1. $args
The args.

Usage

  1. if ( !function_exists( 'bws_help_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4. // The screen. 
  5. $screen = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bws_help_tab($screen, $args); 
  12.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_help_tab( $screen, $args ) { 
  2. $url = ( ! empty( $args['section'] ) ) ? 'http://support.bestwebsoft.com/hc/en-us/sections/' . $args['section'] : 'http://support.bestwebsoft.com/'; 
  3.  
  4. $content = '<p><a href="' . $url . '" target="_blank">' . __( 'Visit Help Center', 'bestwebsoft' ) . '</a></p>'; 
  5.  
  6. $screen->add_help_tab(  
  7. array( 
  8. 'id' => $args['id'] . '_help_tab',  
  9. 'title' => __( 'FAQ', 'bestwebsoft' ),  
  10. 'content' => $content 
  11. ); 
  12.  
  13. $screen->set_help_sidebar( 
  14. '<p><strong>' . __( 'For more information:', 'bestwebsoft' ) . '</strong></p>' . 
  15. '<p><a href="https://drive.google.com/folderview?id=0B5l8lO-CaKt9VGh0a09vUjNFNjA&usp=sharing#list" target="_blank">' . __( 'Documentation', 'bestwebsoft' ) . '</a></p>' . 
  16. '<p><a href="http://www.youtube.com/user/bestwebsoft/playlists?flow=grid&sort=da&view=1" target="_blank">' . __( 'Video Instructions', 'bestwebsoft' ) . '</a></p>' . 
  17. '<p><a href="http://support.bestwebsoft.com/hc/en-us/requests/new" target="_blank">' . __( 'Submit a Request', 'bestwebsoft' ) . '</a></p>' 
  18. );