Inventory_Presser_Contact_Form_7::prepare_value( $post_ID = null )


Source Source

File: includes/integrations/class-contact-form-7.php

	protected function prepare_value( $post_ID = null ) {
		$post_ID = $post_ID ?? get_the_ID();
		$value = trim(
			sprintf(
				'%s %s %s',
				invp_get_the_year( $post_ID ),
				invp_get_the_make( $post_ID ),
				invp_get_the_model( $post_ID )
			) 
		);
		if ( $trim = invp_get_the_trim( $post_ID ) ) {
			$value .= ' ' . $trim;
		}
		if( $stock_number = invp_get_the_stock_number( $post_ID ) ) {
			$value .= ', ' . $stock_number;
		}
		return $value;
	}