Warning: This method has been deprecated. Use invp_get_the_fuel_economy_value() instead.

Inventory_Presser_Vehicle::get_fuel_economy_member( int $fuel_type, string $key )


Description Description

Makes retrieving a fuel economy data point from metadata easier.

Top ↑

Parameters Parameters


(int) (Required) Specifies which of the two fuel types from which to retrieve the value.


(string) (Required) One of these fuel economy member suffixes: name, annual_consumption, annual_cost, annual_emissions, combined_mpg, city_mpg, highway_mpg

Top ↑

Return Return

(string|null) The meta value string corresponding to the provided $key or null

Top ↑

Source Source

File: includes/class-vehicle.php

		public function get_fuel_economy_member( $fuel_type, $key )
			return invp_get_the_fuel_economy_value( $fuel_type, $key, $this->post_ID );

Top ↑

Changelog Changelog

Version Description
12.0.0 Introduced.