Yoast\WP\SEO\Presenters

Breadcrumbs_Presenter::get_wrapper()protectedYoast 1.0

Retrieves the wrapper element name.

Метод класса: Breadcrumbs_Presenter{}

Хуки из метода

Возвращает

Строку. The wrapper element name.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_wrapper();

Код Breadcrumbs_Presenter::get_wrapper() Yoast 22.4

protected function get_wrapper() {
	if ( ! $this->wrapper ) {
		$this->wrapper = \apply_filters( 'wpseo_breadcrumb_output_wrapper', 'span' );
		$this->wrapper = \tag_escape( $this->wrapper );
		if ( ! \is_string( $this->wrapper ) || $this->wrapper === '' ) {
			$this->wrapper = 'span';
		}
	}

	return $this->wrapper;
}