invp_is_boat( int|null $post_ID = null )
Is this vehicle a boat?
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) True if this vehicle’s type is boat.
Source Source
File: includes/template-tags.php
function invp_is_boat( $post_ID = null ) { return 'boat' === strtolower( invp_get_the_type( $post_ID ) ); }
Expand full source codeCollapse full source codeView on Github