SimplePie_Enclosure::get_duration

Advertisement

Summery Summery

Get the duration of the enclosure

Syntax Syntax

SimplePie_Enclosure::get_duration( string $convert = false )

Parameters Parameters

$convert

(Optional) Convert seconds into hh:mm:ss

Default value: false

Return Return

(string|int|null) 'hh:mm:ss' string if $convert was specified, otherwise integer (or null if none found)

Source Source

File: wp-includes/SimplePie/Enclosure.php

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

		return 'full';
	}

	/**
	 * Get the file extension
	 *
	 * @return string|null
	 */
	public function get_extension()
	{
		if ($this->link !== null)
		{

Advertisement

Advertisement

Leave a Reply