• 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 / Breadcrumbs_Presenter::get_id() – Retrieves HTML ID attribute.

You appear to be a bot. Output may be restricted

Description

Retrieves HTML ID attribute.

Usage

$string = Breadcrumbs_Presenter::get_id();

Parameters

Returns

string The id attribute.

Source

File name: wordpress-seo/src/presenters/breadcrumbs-presenter.php
Lines:

1 to 19 of 19
  protected function get_id() {
    if ( ! $this->id ) {
      
/**
 * Filter: 'wpseo_breadcrumb_output_id' - Allow changing the HTML ID on the Yoast SEO breadcrumbs wrapper element.
 *
 * @api string $unsigned ID to add to the wrapper element.
 */
      $this->id = \apply_filters( 'wpseo_breadcrumb_output_id', '' );
      if ( ! \is_string( $this->id ) ) {
        return '';
      }

      if ( $this->id !== '' ) {
        $this->id = ' id="' . \esc_attr( $this->id ) . '"';
      }
    }

    return $this->id;
  }
 

 View on GitHub View on Trac

Published: 2nd May 2020 | Last updated: 8th June 2020

Primary Sidebar

Information

Function name: Breadcrumbs_Presenter::get_id
Class ref: Breadcrumbs_Presenter
Plugin ref: Yoast SEO
Version: 15.4
Sourcefile: src/presenters/breadcrumbs-presenter.php
File ref: src/presenters/breadcrumbs-presenter.php
Deprecated?: No
API Letters: B,G,I,P

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 5.6
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