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
Return Return
(array) An array of vehicle options
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;
}
Expand full source codeCollapse full source codeView on Github