[Plugin: SimpleMap Store Locator] SimpleMaps Filters
-
I’m wondering how we can filter the labels in the search form? Here’s something I’m attempting without avail. Has anyone successfully do this without editing the plugin’s core files?
/* simplemap filters */ function customLabels(){ $ffi['state'] = array( 'label' => apply_filters( 'sm-search-label-state', __( '<strong>Province</strong>: ', 'SimpleMap' ), $post ), 'input' => '<input type="text" id="location_search_state_field" name="location_search_state" value="' . esc_attr( $state_value ) . '" />' ); $ffi['zip'] = array( 'label' => apply_filters( 'sm-search-label-zip', __( '<strong>Postal Code</strong>: ', 'SimpleMap' ), $post ), 'input' => '<input type="text" id="location_search_zip_field" name="location_search_zip" value="' . esc_attr( $zip_value ) . '" />' ); } add_filter('location_search_form', 'customLabels');
Am I missing something or do I have to edit classes/simplemap.php directly?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: SimpleMap Store Locator] SimpleMaps Filters’ is closed to new replies.