WordPress at Your Fingertips
function is not described

SimplePie_Enclosure::get_restriction() public WP 1.0

Get a single restriction

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

No Hooks.

Return

SimplePie_Restriction|null.

Usage

$SimplePie_Enclosure = new SimplePie_Enclosure();
$SimplePie_Enclosure->get_restriction( $key );
$key(int)
-

Code of SimplePie_Enclosure::get_restriction() WP 5.8.2

public function get_restriction($key = 0)
{
	$restrictions = $this->get_restrictions();
	if (isset($restrictions[$key]))
	{
		return $restrictions[$key];
	}

	return null;
}