invp_get_the_options( int|null $post_ID = null )

invp_get_the_options


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

(array) An array of vehicle options


Top ↑

Source Source

File: includes/template-tags.php

	 * Backwards compatibility to versions before 5.4.0 where the
	 * incoming argument was a string not an array.
	 */
	if ( ! is_array( $sizes ) ) {
		$sizes = array( $sizes );
	}
	if ( ! in_array( 'full', $sizes, true ) ) {
		$sizes[] = 'full';
	}

	if ( empty( $post_ID ) ) {
		$post_ID = get_the_ID();