Yoast\WP\SEO\Services\Health_Check

Postname_Permalink_Runner::run()publicYoast 1.0

Runs the health check. Checks if permalinks are set to contain the post name.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Postname_Permalink_Runner = new Postname_Permalink_Runner();
$Postname_Permalink_Runner->run();

Код Postname_Permalink_Runner::run() Yoast 22.4

public function run() {
	$this->permalinks_contain_postname = ( \strpos( \get_option( 'permalink_structure' ), '%postname%' ) !== false );
}