WordPress at Your Fingertips
function is not described

SimplePie_Enclosure::get_restrictions() public WP 1.0

Get all restrictions

{} It's a method of the class: SimplePie_Enclosure{}

No Hooks.

Return

Array|null. Array of SimplePie_Restriction{} objects

Usage

$SimplePie_Enclosure = new SimplePie_Enclosure();
$SimplePie_Enclosure->get_restrictions();

Code of SimplePie_Enclosure::get_restrictions() WP 5.8.2

public function get_restrictions()
{
	if ($this->restrictions !== null)
	{
		return $this->restrictions;
	}

	return null;
}