invp_is_carfax_one_owner( int|null $post_ID = null )
Answers the question, “is this vehicle designated a “one owner” by Carfax?
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 is designated as a "one owner" by Carfax
Source Source
File: includes/template-tags.php
function invp_is_carfax_one_owner( $post_ID = null ) { if ( empty( $post_ID ) ) { $post_ID = get_the_ID(); } return ! empty( INVP::get_meta( 'carfax_one_owner', $post_ID ) ); }
Expand full source code Collapse full source code View on Github