WordPress at Your Fingertips
function is not described

SimplePie_Enclosure::get_size() public WP 1.0

Get the file size (in MiB)

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

No Hooks.

Return

float|null. File size in mebibytes (1048 bytes)

Usage

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

Code of SimplePie_Enclosure::get_size() WP 5.8.2

public function get_size()
{
	$length = $this->get_length();
	if ($length !== null)
	{
		return round($length/1048576, 2);
	}

	return null;
}