Yoast\WP\SEO\Repositories
Indexable_Repository::ensure_permalink
Ensures that the given indexable has a permalink.
Will be deprecated in 17.3 - Use upgrade_indexable instead.
Метод класса: Indexable_Repository{}
Хуков нет.
Возвращает
bool|Indexable. The indexable.
Использование
$Indexable_Repository = new Indexable_Repository(); $Indexable_Repository->ensure_permalink( $indexable );
- $indexable(Indexable) (обязательный)
- The indexable.
Код Indexable_Repository::ensure_permalink() Indexable Repository::ensure permalink Yoast 28.7
public function ensure_permalink( $indexable ) {
// @phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- self::class is safe.
// @phpcs:ignore Squiz.PHP.CommentedOutCode.Found
// _deprecated_function( __METHOD__, 'Yoast SEO 17.3', self::class . '::upgrade_indexable' );
return $this->upgrade_indexable( $indexable );
}