• 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 / Abstract_Indexable_Tag_Presenter::present() – Returns a tag in the head.

You appear to be a bot. Output may be restricted

Description

Returns a tag in the head.

Usage

$string = Abstract_Indexable_Tag_Presenter::present();

Parameters

Returns

string The tag.

Source

File name: wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php


Lines:

1 to 20 of 20
  public function present() {
    $value = $this->get();

    if ( ! \is_string( $value ) || $value === '' ) {
      return '';
    }

    
/**
 * There may be some classes that are derived from this class that do not use the $key property
 * in their $tag_format string. In that case the key property will simply not be used.
 */
    return \sprintf(
      $this->tag_format,
      $this->escape_value( $value ),
      $this->key,
      \is_admin_bar_showing() ? ' class="yoast-seo-meta-tag"' : ''
    );
  }
 

 View on GitHub View on Trac

Published: 2nd May 2020 | Last updated: 14th September 2022

Primary Sidebar

Information

Function name: Abstract_Indexable_Tag_Presenter::present
Class ref: Abstract_Indexable_Tag_Presenter
Plugin ref: Yoast SEO
Version: 20.2.1
Sourcefile: src/presenters/abstract-indexable-tag-presenter.php
File ref: src/presenters/abstract-indexable-tag-presenter.php
Deprecated?: No
API Letters: A,I,P,T

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.1.1
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-2023. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites