Yoast\WP\SEO\Models

Indexable::save()publicYoast 1.0

Enhances the save method.

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

Хуков нет.

Возвращает

true|false. True on success.

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

$Indexable = new Indexable();
$Indexable->save();

Код Indexable::save() Yoast 22.4

public function save() {
	if ( $this->permalink ) {
		$this->sanitize_permalink();
		$this->permalink_hash = \strlen( $this->permalink ) . ':' . \md5( $this->permalink );
	}
	if ( \is_string( $this->primary_focus_keyword ) && \mb_strlen( $this->primary_focus_keyword ) > 191 ) {
		$this->primary_focus_keyword = \mb_substr( $this->primary_focus_keyword, 0, 191, 'UTF-8' );
	}

	return parent::save();
}