Yoast\WP\SEO\Integrations\Front_End
RSS_Footer_Embed::rss_replace_vars() protected Yoast 1.0
Replaces the possible RSS variables with their actual values.
{} Это метод класса: RSS_Footer_Embed{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->rss_replace_vars( $content );
- $content(строка) (обязательный)
- The RSS content that should have the variables replaced.
Код RSS_Footer_Embed::rss_replace_vars() RSS Footer Embed::rss replace vars Yoast 15.6.2
protected function rss_replace_vars( $content ) {
if ( $content === '' ) {
return $content;
}
$replace_vars = $this->get_replace_vars( $this->get_link_template(), \get_post() );
$content = \stripslashes( \trim( $content ) );
$content = \str_ireplace( \array_keys( $replace_vars ), \array_values( $replace_vars ), $content );
return \wpautop( $content );
}