WPSEO_Post_Type_Sitemap_Provider::handles_type()publicYoast 1.0

Check if provider supports given item type.

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

Хуков нет.

Возвращает

true|false.

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

$WPSEO_Post_Type_Sitemap_Provider = new WPSEO_Post_Type_Sitemap_Provider();
$WPSEO_Post_Type_Sitemap_Provider->handles_type( $type );
$type(строка) (обязательный)
Type string to check for.

Код WPSEO_Post_Type_Sitemap_Provider::handles_type() Yoast 22.4

public function handles_type( $type ) {

	return post_type_exists( $type );
}