wpseo_pre_analysis_post_content
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_pre_analysis_post_content
yoast/inc/class-wpseo-content-images.php 104
$content = apply_filters( 'wpseo_pre_analysis_post_content', $post->post_content, $post );