eventorganiser_venue_address_fields
(filter)
Filters fields used for the address of a venue.
This filter allows you to remove address components you don't need or add-ones
you do. The array is indexed by meta-key which must be prefixed by an
underscore (_
), The value is the label of the address component.
Added fields will appear in the address metabox on the admin venue screen.
Parameters
array
|
$address_fields |
An array of address components
|
Example Usage
add_filter( 'eventorganiser_venue_address_fields', 'my_callback_function', 10, 1 );
function my_callback_function( $address_fields ){
//Change first value and return it
return $address_fields
};