*/ namespace RankMath\SEO_Analysis; use RankMath\Helper; use RankMath\Helpers\Param; defined( 'ABSPATH' ) || exit; /** * Admin Tabs class. * * @codeCoverageIgnore */ class Admin_Tabs { /** * Display dashboard tabs. */ public function display() { $nav_links = $this->get_nav_links(); if ( empty( $nav_links ) ) { return; } ?>
$link ) { $this->nav_link( $link ); } ?>
' : ''; ?> [ 'id' => 'seo_analyzer', 'url' => 'seo-analysis', 'args' => 'view=seo_analyzer', 'cap' => 'rank_math_site_analysis', 'title' => esc_html__( 'SEO Analyzer', 'rank-math' ), 'icon' => 'rm-icon rm-icon-analyzer', ], 'competitor_analyzer' => [ 'id' => 'competitor_analyzer', 'url' => 'seo-analysis', 'args' => 'view=competitor_analyzer', 'cap' => 'rank_math_site_analysis', 'title' => esc_html__( 'Competitor Analyzer', 'rank-math' ), 'icon' => 'rm-icon rm-icon-users', ], ]; return apply_filters( 'rank_math/seo_analysis/admin_tab_links', $links ); } }