apply_filters( "tribe_events_importer_venue_default_{$key}_value", string $value, string $key, string $name, array $venue, array )

Allows filtering of default value before setting.

Also allows setting a value (specifically for imports) by filter that is not set in the admin for manually-created venues.


Parameters #

$value

(string) The default value as set in the admin "defaults" settings.

$key

(string) The mapped key for the value we'll be importing. From the $columns array above, this would be 'state' (the array "value"), for example.

$name

(string) The name for the value. From the $columns array above, this would be 'Province' (the array "key"), for example.

$venue

(array) The entire array of venue data we're modifying. In the format [ $key => $value ].

(array) <string,string> $record The event record from the import file. Only contains mapped values. Useful if value and key above don't appear to match what's expected. In the format [ mapped_key => value ].


Top ↑

Source #

File: src/Tribe/Importer/File_Importer_Venues.php