invp_get_the_youtube_url( int|null $post_ID = null )

invp_get_the_youtube_url


Description Description

Returns this vehicle's YouTube video URL or empty string.


Top ↑

Parameters Parameters

$post_ID

(int|null) (Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.

Default value: null


Top ↑

Return Return

(string) This vehicle's YouTube URL or empty string


Top ↑

Source Source

File: includes/template-tags.php

 */
function invp_get_the_year( $post_ID = null ) {
	if ( empty( $post_ID ) ) {
		$post_ID = get_the_ID();
	}
	return INVP::get_meta( 'year', $post_ID );
}

/**
 * invp_get_the_youtube_url
 *
 * Returns this vehicle's YouTube video URL or empty string.