Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Inventory_Presser_Vehicle::extract_digits( string $str )

extract_digits


Description Description

Extracts all digits from an input string and returns them as an integer.

This method is used to extract odometer values from strings. Dealers will include commas, periods instead of commas, and other characters that prevent odometers from being sorted as numbers.


Top ↑

Parameters Parameters

$str

(string) (Required) The input string from which digits will be extracted.


Top ↑

Return Return

(int) All digits in the input string in the same order, parsed as an integer.


Top ↑

Source Source

File: includes/class-vehicle.php

		 */
		function youtube_url()
		{
			return invp_get_the_youtube_url( $this->post_ID );