invp_is_sold( int|null $post_ID = null )
Returns true if this vehicle is sold.
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_sold( $post_ID = null ) { return false !== strpos( strtolower( INVP::get_meta( 'availability', $post_ID ) ) ?? '', 'sold' ); }
Expand full source codeCollapse full source codeView on Github