Yoast\WP\SEO\Presenters
Abstract_Indexable_Presenter::escape_key()
Transforms an indexable presenter's key to a json safe key string.
Метод класса: Abstract_Indexable_Presenter{}
Хуков нет.
Возвращает
Строку|null
.
Использование
$Abstract_Indexable_Presenter = new Abstract_Indexable_Presenter(); $Abstract_Indexable_Presenter->escape_key();
Код Abstract_Indexable_Presenter::escape_key() Abstract Indexable Presenter::escape key Yoast 22.4
public function escape_key() { if ( $this->key === 'NO KEY PROVIDED' ) { return null; } return \str_replace( [ ':', ' ', '-' ], '_', $this->key ); }