wpseo_schema_article_types хук-фильтрYoast 1.0

Filter: wpseo_schema_article_types Allow developers to filter the available article types.

Make sure when you filter this to also filter wpseo_schema_article_types_labels.

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

add_filter( 'wpseo_schema_article_types', 'wp_kama_wpseo_schema_article_types_filter' );

/**
 * Function for `wpseo_schema_article_types` filter-hook.
 * 
 * @param array $schema_article_types The available schema article types.
 *
 * @return array
 */
function wp_kama_wpseo_schema_article_types_filter( $schema_article_types ){

	// filter...
	return $schema_article_types;
}
$schema_article_types(массив)
The available schema article types.

Где вызывается хук

WPSEO_Option_Titles::validate_option()
wpseo_schema_article_types
WPSEO_Meta::get_meta_field_defs()
wpseo_schema_article_types
WPSEO_Meta::filter_schema_article_types()
wpseo_schema_article_types
Meta_Tags_Context::generate_schema_article_type()
wpseo_schema_article_types
yoast/inc/options/class-wpseo-option-titles.php 631
if ( array_key_exists( $dirty[ $key ], apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES ) ) ) {
yoast/inc/class-wpseo-meta.php 399
$allowed_article_types = apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES );
yoast/inc/class-wpseo-meta.php 1070
self::$meta_fields['schema']['schema_article_type']['options'] = apply_filters( 'wpseo_schema_article_types', self::$meta_fields['schema']['schema_article_type']['options'] );
yoast/admin/views/tabs/metas/paper-content/post_type/post-type.php 63
$allowed_article_types = apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES );
yoast/src/context/meta-tags-context.php 499
$allowed_article_types = \apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES );

Где используется хук в Yoast SEO

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