wpseo_include_rss_footer хук-фильтр . Yoast 1.0
Filter: 'wpseo_include_rss_footer' - Allow the RSS footer to be dynamically shown/hidden.
Использование
add_filter( 'wpseo_include_rss_footer', 'filter_function_name_4', 10, 2 ); function filter_function_name_4( $show_embed, $context ){ // filter... return $show_embed; }
- $show_embed(true/false)
- Indicates if the RSS footer should be shown or not.
- $context(строка)
- The context of the RSS content - 'full' or 'excerpt'.
Где вызывается хук
wpseo_include_rss_footer
yoast/src/integrations/front-end/rss-footer-embed.php 102
if ( ! \apply_filters( 'wpseo_include_rss_footer', true, $context ) ) {