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

Filter: wpseo_indexable_forced_included_post_types Allows force including posts of a certain post type to be saved to the indexable table.

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

add_filter( 'wpseo_indexable_forced_included_post_types', 'wp_kama_wpseo_indexable_forced_included_post_types_filter' );

/**
 * Function for `wpseo_indexable_forced_included_post_types` filter-hook.
 * 
 * @param array $included_post_types The currently included post types that indexables will be created for.
 *
 * @return array
 */
function wp_kama_wpseo_indexable_forced_included_post_types_filter( $included_post_types ){

	// filter...
	return $included_post_types;
}
$included_post_types(массив)
The currently included post types that indexables will be created for.

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

Post_Type_Helper::filter_included_post_types()
wpseo_indexable_forced_included_post_types
yoast/src/helpers/post-type-helper.php 181
$filtered_included_post_types = \apply_filters( 'wpseo_indexable_forced_included_post_types', $included_post_types );

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

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