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.


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


$SimplePie_Enclosure = new SimplePie_Enclosure();

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;