• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPSEO_Yoast_Columns::add_help_tab() – Adds the help tab to the help center for current screen.

You appear to be a bot. Output may be restricted

Description

Adds the help tab to the help center for current screen.

Usage

WPSEO_Yoast_Columns::add_help_tab();

Parameters

Returns

void

Source

File name: wordpress-seo/admin/class-yoast-columns.php


Lines:

1 to 45 of 45
  public function add_help_tab() {
    $link_columns_present = $this->display_links();
    $meta_columns_present = $this->display_meta_columns();
    if ( ! ( $link_columns_present || $meta_columns_present ) ) {
      return;
    }

    $help_tab_content = sprintf(
      /* translators: %1$s: Yoast SEO */
      __( '%1$s adds several columns to this page.', 'wordpress-seo' ),
      'Yoast SEO'
    );

    if ( $meta_columns_present ) {
      $help_tab_content .= ' ' . sprintf(
        /* translators: %1$s: Link to article about content analysis, %2$s: Anchor closing */
        __( 'We\'ve written an article about %1$show to use the SEO score and Readability score%2$s.', 'wordpress-seo' ),
        '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/16p' ) . '">',
        '</a>'
      );
    }

    if ( $link_columns_present ) {
      $help_tab_content .= ' ' . sprintf(
        /* translators: %1$s: Link to article about text links, %2$s: Anchor closing tag, %3$s: Emphasis open tag, %4$s: Emphasis close tag */
        __( 'The links columns show the number of articles on this site linking %3$sto%4$s this article and the number of URLs linked %3$sfrom%4$s this article. Learn more about %1$show to use these features to improve your internal linking%2$s, which greatly enhances your SEO.', 'wordpress-seo' ),
        '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/16p' ) . '">',
        '</a>',
        '<em>',
        '</em>'
      );
    }

    $screen = get_current_screen();
    $screen->add_help_tab(
      [
        /* translators: %s expands to Yoast */
        'title'    => sprintf( __( '%s Columns', 'wordpress-seo' ), 'Yoast' ),
        'id'       => 'yst-columns',
        'content'  => '<p>' . $help_tab_content . '</p>',
        'priority' => 15,
      ]
    );
  }
 

 View on GitHub View on Trac

Published: 27th November 2019 | Last updated: 10th December 2020

Primary Sidebar

Information

Function name: WPSEO_Yoast_Columns::add_help_tab
Class ref: WPSEO_Yoast_Columns
Plugin ref: Yoast SEO
Version: 15.9
Sourcefile: admin/class-yoast-columns.php
File ref: admin/class-yoast-columns.php
Deprecated?: No
API Letters: A,C,H,W,Y

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 5.6.2
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites