yoast_add_meta_options_help_center_tabs

Add help tabs.

Description

(array) yoast_add_meta_options_help_center_tabs( (array) $tabs ); 

Returns (array)

Parameters (1)

0. $tabs (array)
Current help center tabs.

Usage

  1. if ( !function_exists( 'yoast_add_meta_options_help_center_tabs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/admin/pages/metas.php'; 
  3.  
  4. // Current help center tabs. 
  5. $tabs = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yoast_add_meta_options_help_center_tabs($tabs); 
  9.  

Defined (1)

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

/admin/pages/metas.php  
  1. function yoast_add_meta_options_help_center_tabs( $tabs ) { 
  2. $tabs[] = new WPSEO_Help_Center_Item
  3. 'basic-help',  
  4. __( 'Template explanation', 'wordpress-seo' ),  
  5. array( 
  6. 'content' => "\n\t\t<h2>" . __( 'Template explanation', 'wordpress-seo' ) . "</h2>\n\t\t" . '<p><p>' . 
  7. sprintf( 
  8. /** translators: %1$s expands to Yoast SEO. */ 
  9. __( 'The title & metas settings for %1$s are made up of variables that are replaced by specific values from the page when the page is displayed. The tabs on the left explain the available variables.', 'wordpress-seo' ),  
  10. 'Yoast SEO' ) . 
  11. '</p><p>' . __( 'Note that not all variables can be used in every template.', 'wordpress-seo' ) . '</p>',  
  12. ); 
  13.  
  14. $tabs[] = new WPSEO_Help_Center_Item
  15. 'title-vars',  
  16. __( 'Basic Variables', 'wordpress-seo' ),  
  17. array( 
  18. 'content' => '<h2>' . __( 'Basic Variables', 'wordpress-seo' ) . '</h2>' . WPSEO_Replace_Vars::get_basic_help_texts(),  
  19. ); 
  20.  
  21. $tabs[] = new WPSEO_Help_Center_Item
  22. 'title-vars-advanced',  
  23. __( 'Advanced Variables', 'wordpress-seo' ),  
  24. array( 
  25. 'content' => '<h2>' . __( 'Advanced Variables', 'wordpress-seo' ) . '</h2>' . WPSEO_Replace_Vars::get_advanced_help_texts(),  
  26. ); 
  27.  
  28. return $tabs;