Yoast\WP\SEO\Presenters
Breadcrumbs_Presenter::get_wrapper() protected Yoast 1.0
Retrieves the wrapper element name.
{} Это метод класса: Breadcrumbs_Presenter{}
Хуки из метода
Возвращает
Строку. The wrapper element name.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_wrapper();
Код Breadcrumbs_Presenter::get_wrapper() Breadcrumbs Presenter::get wrapper Yoast 15.6.2
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;
}