WordPress at a glance
function is not described

SimplePie::get_item_quantity() public WP 1.0

Get the number of items in the feed

This is well-suited for for() loops with {@see get_item()}

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

No Hooks.


Int. Number of items in the feed


$SimplePie = new SimplePie();
$SimplePie->get_item_quantity( $max );
Maximum value to return. 0 for no limit

Code of SimplePie::get_item_quantity() WP 5.7.2

public function get_item_quantity($max = 0)
	$max = (int) $max;
	$qty = count($this->get_items());
	if ($max === 0)
		return $qty;

	return ($qty > $max) ? $max : $qty;