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

		$post_ID = get_the_ID();
	}

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

/**