Yoast\WP\SEO\Models
Indexable::save()
Enhances the save method.
Метод класса: Indexable{}
Хуков нет.
Возвращает
true|false
. True on success.
Использование
$Indexable = new Indexable(); $Indexable->save();
Код Indexable::save() Indexable::save Yoast 24.1
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(); }