Namespace CultureHosts\WP\Importer\Service\Formatters

Classes
Force_Array

If a value is not already an array, it will be placed as the single element inside a new one.

Format_Boolean

Boolean fields in CultureHosts are often 1 or 0 in value. This formatter allows you to choose human-friendly values such as 'yes' and 'no'.

Format_Date

Format a date using PHP date format

Format_Multiple_Values

Apply other formatters to each value in an array of values.

Format_Number

Format a numerical value. Especially useful for currency.

Format_Tag

Converts raw tag slugs in a CultureHosts record to be more human-friendly.

List_Values

Implode an array into a single string, with a separator in between each element.

Sprintf_Values

Passes a value through sprintf (or vsprintf if there is an array of values).