WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WPSEO_Health_Check_Postname_Permalink::run() public Yoast 1.0

Runs the test.

{} Это метод класса: WPSEO_Health_Check_Postname_Permalink{}

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код WPSEO_Health_Check_Postname_Permalink::run() Yoast 15.9

<?php
public function run() {
	if ( $this->has_postname_in_permalink() ) {
		$this->label          = esc_html__( 'Your permalink structure includes the post name', 'wordpress-seo' );
		$this->status         = self::STATUS_GOOD;
		$this->badge['color'] = 'blue';
		$this->description    = esc_html__( 'You do have your postname in the URL of your posts and pages.', 'wordpress-seo' );

		return;
	}

	$this->label          = esc_html__( 'You do not have your postname in the URL of your posts and pages', 'wordpress-seo' );
	$this->status         = self::STATUS_RECOMMENDED;
	$this->badge['color'] = 'red';

	$this->description = sprintf(
		/* translators: %s expands to '/%postname%/' */
		__( 'It\'s highly recommended to have your postname in the URL of your posts and pages. Consider setting your permalink structure to %s.', 'wordpress-seo' ),
		'<strong>/%postname%/</strong>'
	);

	$this->actions = sprintf(
		/* translators: %1$s is a link start tag to the permalink settings page, %2$s is the link closing tag. */
		__( 'You can fix this on the %1$sPermalink settings page%2$s.', 'wordpress-seo' ),
		'<a href="' . admin_url( 'options-permalink.php' ) . '">',
		'</a>'
	);
}