WPSEO_Abstract_Post_Filter::is_supported_post_type()protectedYoast 1.0

Checks if the post type is supported.

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

Хуков нет.

Возвращает

true|false. True when it is supported.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_supported_post_type( $post_type );
$post_type(строка) (обязательный)
Post type to check against.

Код WPSEO_Abstract_Post_Filter::is_supported_post_type() Yoast 22.4

protected function is_supported_post_type( $post_type ) {
	return in_array( $post_type, $this->get_post_types(), true );
}