Yoast\WP\SEO\Integrations\Front_End
RSS_Footer_Embed::include_rss_footer() protected Yoast 1.0
Checks if the RSS footer should included.
{} Это метод класса: RSS_Footer_Embed{}
Хуки из метода
Возвращает
true/false. Whether or not the RSS footer should included.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->include_rss_footer( $context );
- $context(строка) (обязательный)
- The context of the RSS content.
Код RSS_Footer_Embed::include_rss_footer() RSS Footer Embed::include rss footer Yoast 15.7
protected function include_rss_footer( $context ) {
if ( ! \is_feed() ) {
return false;
}
/**
* Filter: 'wpseo_include_rss_footer' - Allow the RSS footer to be dynamically shown/hidden.
*
* @api boolean $show_embed Indicates if the RSS footer should be shown or not.
*
* @param string $context The context of the RSS content - 'full' or 'excerpt'.
*/
if ( ! \apply_filters( 'wpseo_include_rss_footer', true, $context ) ) {
return false;
}
return $this->is_configured();
}