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

Filter: wpseo_pre_analysis_post_content Allow filtering the content before analysis.

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

add_filter( 'wpseo_pre_analysis_post_content', 'wp_kama_wpseo_pre_analysis_post_content_filter', 10, 2 );

/**
 * Function for `wpseo_pre_analysis_post_content` filter-hook.
 * 
 * @param string  $post_content The Post content string.
 * @param WP_Post $post         The current post.
 *
 * @return string
 */
function wp_kama_wpseo_pre_analysis_post_content_filter( $post_content, $post ){

	// filter...
	return $post_content;
}
$post_content(строка)
The Post content string.
$post(WP_Post)
The current post.

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

WPSEO_Content_Images::get_post_content()
wpseo_pre_analysis_post_content
yoast/inc/class-wpseo-content-images.php 104
$content = apply_filters( 'wpseo_pre_analysis_post_content', $post->post_content, $post );

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

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