WPSEO_Metabox::is_post_edit()public staticYoast 1.0

Checks if the page is the post edit page.

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

Хуков нет.

Возвращает

true|false. Whether or not the given page is the post edit page.

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

$result = WPSEO_Metabox::is_post_edit( $page );
$page(строка) (обязательный)
The page to check for the post edit page.

Код WPSEO_Metabox::is_post_edit() Yoast 24.7

public static function is_post_edit( $page ) {
	return $page === 'post.php'
		|| $page === 'post-new.php';
}