Rel_Prev_Presenter::get()publicYoast 1.0

Run the rel prev content through the wpseo_adjacent_rel_url

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

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


Строку. The filtered adjacent link.


$Rel_Prev_Presenter = new Rel_Prev_Presenter();

Код Rel_Prev_Presenter::get() Yoast 22.4

public function get() {
	if ( \in_array( 'noindex', $this->presentation->robots, true ) ) {
		return '';

	 * Filter: 'wpseo_adjacent_rel_url' - Allow filtering of the rel prev URL put out by Yoast SEO.
	 * @param string                 $canonical    The rel prev URL.
	 * @param string                 $rel          Link relationship, prev or next.
	 * @param Indexable_Presentation $presentation The presentation of an indexable.
	return (string) \trim( \apply_filters( 'wpseo_adjacent_rel_url', $this->presentation->rel_prev, 'prev', $this->presentation ) );