invp_is_used( int|null $post_ID = null )
Returns true if this vehicle is used.
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
Return Return
(bool)
Source Source
File: includes/template-tags.php
function invp_is_used( $post_ID = null ) { if ( empty( $post_ID ) ) { $post_ID = get_the_ID(); } return has_term( 'used', 'condition', $post_ID ); }
Expand full source codeCollapse full source codeView on Github