Last active
          October 8, 2024 09:03 
        
      - 
      
- 
        Save wp-seopress/09521e0d039ff466ccb6c0c85cee109b to your computer and use it in GitHub Desktop. 
    Filter tabs in the Dashboard Site Overview block
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | add_filter('seopress_dashboard_site_overview_tabs', 'sp_dashboard_site_overview_tabs'); | |
| function sp_dashboard_site_overview_tabs($tabs) { | |
| //Default array | |
| // $tabs = [ | |
| // 'tab_seopress_analytics' => esc_html__('Google Analytics', 'wp-seopress-pro'), | |
| // 'tab_seopress_matomo' => esc_html__('Matomo Analytics', 'wp-seopress-pro'), | |
| // 'tab_seopress_ps' => esc_html__('PageSpeed', 'wp-seopress-pro'), | |
| // 'tab_seopress_gsc' => esc_html__('Search Console', 'wp-seopress-pro'), | |
| // ]; | |
| //Remove Page Speed tab of the Site Overview block | |
| unset($tabs['tab_seopress_ps']); | |
| return $tabs; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment