invp_get_the_drive_type( int|null $post_ID = null )

Template tag. Returns the drive type, or a description of how many driven wheels are on the vehicle.

Parameters Parameters


(int|null) (Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.

Default value: null

Top ↑

Return Return


Top ↑

Source Source

File: includes/template-tags.php

function invp_get_the_drive_type( $post_ID = null ) {
	if ( empty( $post_ID ) ) {
		$post_ID = get_the_ID();
	return INVP::get_meta( 'drive_type', $post_ID );