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 )

get_fuel_economy_member


Description Description

Makes retrieving a fuel economy data point from metadata easier.


Top ↑

Parameters Parameters

$fuel_type

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

$key

(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

Changelog
Version Description
12.0.0 Introduced.