invp_get_the_options( int|null $post_ID = null )

invp_get_the_options

On This Page


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

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