Yoast\WP\SEO\Repositories

Indexable_Repository::ensure_permalink()publicYoast 1.0

Ensures that the given indexable has a permalink.

Will be deprecated in 17.3 - Use upgrade_indexable instead.

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

Хуков нет.

Возвращает

true|false|Indexable. The indexable.

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

$Indexable_Repository = new Indexable_Repository();
$Indexable_Repository->ensure_permalink( $indexable );
$indexable(Indexable) (обязательный)
The indexable.

Код Indexable_Repository::ensure_permalink() Yoast 19.11

public function ensure_permalink( $indexable ) {
	// @phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- self::class is safe.
	// @phpcs:ignore Squiz.PHP.CommentedOutCode.Found
	// _deprecated_function( __METHOD__, 'WPSEO 17.3', self::class . '::upgrade_indexable' );

	return $this->upgrade_indexable( $indexable );
}