WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

SimplePie::subscribe_url() public WP 0.8.

Get the URL for the feed

When the 'permanent' mode is enabled, returns the original feed URL, except in the case of an HTTP 301 Moved Permanently status response, in which case the location of the first redirection is returned.

When the 'permanent' mode is disabled (default), may or may not be different from the URL passed to {@see set_feed_url()}, depending on whether auto-discovery was used, and whether there were any redirects along the way.

Это метод класса: SimplePie{}

Хуков нет.

Возвращает

Строку/null.

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

$SimplePie = new SimplePie();
$SimplePie->subscribe_url( $permanent );
$permanent(true/false)
Permanent mode to return only the original URL or the first redirection iff it is a 301 redirection
По умолчанию: false

Список изменений

С версии 0.8. Введена.

Since Preview Release (previously called get_feed_url() since SimplePie 0.8.)

Код SimplePie::subscribe_url() WP 5.5.1

wp-includes/class-simplepie.php
<?php
public function subscribe_url($permanent = false)
{
	if ($permanent)
	{
		if ($this->permanent_url !== null)
		{
			// sanitize encodes ampersands which are required when used in a url.
			return str_replace('&amp;', '&',
			                   $this->sanitize($this->permanent_url,
			                                   SIMPLEPIE_CONSTRUCT_IRI));
		}
	}
	else
	{
		if ($this->feed_url !== null)
		{
			return str_replace('&amp;', '&',
			                   $this->sanitize($this->feed_url,
			                                   SIMPLEPIE_CONSTRUCT_IRI));
		}
	}
	return null;
}