1. Home
  2. Car Demon Code Docs
  3. Actions
  4. cd_location_update_action

cd_location_update_action

This action is called whenever a new location is added or a location has it’s settings updated.

do_action( ‘cd_location_update_action’, $location );

add_action( 'cd_location_update_action', 'my_location_update', 10, 1 );
function my_location_update( $location ) {

    //= do something here, like save a custom setting

}

The above example takes no action, but you can use it as a template to make your own custom actions whenever a new location is added or an existing location is updated.

Was this article helpful to you? Yes No

How can we help?