Inventory_Presser_Google_Maps_Widget_V3::update( array $new_instance, array $old_instance )
Saves the widget settings when a dashboard user clicks the Save button.
On This Page
Parameters Parameters
- $new_instance
-
(array) (Required)
- $old_instance
-
(array) (Required)
Return Return
(array) The updated array full of settings
Source Source
File: includes/widget/class-widget-google-maps-v3.php
return array( 'title' => ( ! empty( $new_instance['title'] ) ) ? wp_strip_all_tags( $new_instance['title'] ) : '', 'api_key' => ( ! empty( $new_instance['api_key'] ) ) ? wp_strip_all_tags( $new_instance['api_key'] ) : '', 'location_slugs' => ( ! empty( $new_instance['location_slugs'] ) ) ? $new_instance['location_slugs'] : '', ); } }
Expand full source codeCollapse full source codeView on Github