SimplePie::set_autodiscovery_level()publicWP 1.0

Set how much feed autodiscovery to do

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$SimplePie = new SimplePie();
$SimplePie->set_autodiscovery_level( $level );
$level(int)
Feed Autodiscovery Level (level can be a combination of the above constants, see bitwise OR operator)
По умолчанию: SIMPLEPIE_LOCATOR_ALL

Заметки

  • Смотрите: SIMPLEPIE_LOCATOR_NONE
  • Смотрите: SIMPLEPIE_LOCATOR_AUTODISCOVERY
  • Смотрите: SIMPLEPIE_LOCATOR_LOCAL_EXTENSION
  • Смотрите: SIMPLEPIE_LOCATOR_LOCAL_BODY
  • Смотрите: SIMPLEPIE_LOCATOR_REMOTE_EXTENSION
  • Смотрите: SIMPLEPIE_LOCATOR_REMOTE_BODY
  • Смотрите: SIMPLEPIE_LOCATOR_ALL

Код SimplePie::set_autodiscovery_level() WP 6.5.2

public function set_autodiscovery_level($level = SIMPLEPIE_LOCATOR_ALL)
{
	$this->autodiscovery = (int) $level;
}