WPSEO_Metabox_Addon_Tab_Section

Generates and displays a section containing metabox tabs that have been added by other plugins through the `wpseo_tab_header` and `wpseo_tab_content` actions.

Defined (1)

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

/admin/metabox/class-metabox-addon-section.php  
  1. class WPSEO_Metabox_Addon_Tab_Section extends WPSEO_Metabox_Tab_Section { 
  2.  
  3. /** 
  4. * Applies the actions for adding a tab to the metabox. 
  5. */ 
  6. public function display_content() { 
  7. ?> 
  8. <div id="wpseo-meta-section-addons" class="wpseo-meta-section"> 
  9. <div class="wpseo-metabox-tabs-div"> 
  10. <ul class="wpseo-metabox-tabs"> 
  11. <?php do_action( 'wpseo_tab_header' ); ?> 
  12. </ul> 
  13. </div> 
  14. <?php do_action( 'wpseo_tab_content' ); ?> 
  15. </div> 
  16. <?php 
  17.  
  18. /** 
  19. * `WPSEO_Metabox_Addon_Section` always has "tabs", represented by registered actions. If this is not the case,  
  20. * it should not be instantiated. 
  21. * @return bool 
  22. */ 
  23. protected function has_tabs() { 
  24. return true;