invp_get_the_options( int $post_ID = null )

invp_get_the_options


Parameters Parameters

$post_ID

(int) (Optional)

Default value: null


Top ↑

Return Return

(array) An array of vehicle options


Top ↑

Source Source

File: includes/template-tags.php

function invp_get_the_options( $post_ID = null )
{
	if( empty( $post_ID ) )
	{
		$post_ID = get_the_ID();
	}

	$raw = INVP::get_meta( 'options_array', $post_ID );
	if( empty( $raw ) )
	{
		return array();
	}
	sort( $raw );
	return $raw;
}