Car Demon Code Docs

  1. Home
  2. Car Demon Code Docs
  3. Display Filters
  4. $field . ‘_location_filter’

$field . ‘_location_filter’

This filter can be used to filter any standard location field. Simple replace $field with the actual field name.

For example, if you want to filter the “New Sales Name” filter the filter would be:


The following example will capitalize all letters in the “New Sales Name” for all locations.

function my_new_sales_name_location_filter( $value, $location ) {
    $value = strtoupper( $value );
    return $value;
add_filter( '_new_sales_name_location_filter', 'my_new_sales_name_location_filter', 10, 2 );
Was this article helpful to you? Yes No

How can we help?