Function Reference: geodir_location_admin_search_box
Summary
‘Manage location’ page search form.
Package
GeoDirectory_Location_Manager
Parameters
- $text
- (string) (required) Submit button text.
- Default: None
- $text_input_id
- (string) (required) HTML id for input box.
- Default: None
Return Values
- (string)
- search form HTML.
Change Log
Since: 1.0.0
Source File
geodir_location_admin_search_box() is located in geodir_location_manager/geodir_location_functions.php [Line: 3079]
Source Code
function geodir_location_admin_search_box( $text, $text_input_id ) { $input_id = $text_input_id . '-search-input'; $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url ); $current_url_search = esc_url( remove_query_arg( array( 's', 'country', 'paged' ), $current_url ), '', '' ); $current_url = esc_url( $current_url); $countries = geodir_post_location_countries( true ); $country = isset( $_REQUEST['country'] ) ? wp_unslash( trim( $_REQUEST['country'] ) ) : ''; ob_start(); ?>