Function Reference: geodir_event_manager_ajax
Summary
This function has not been documented yet.
Source File
geodir_event_manager_ajax() is located in geodir_event_manager/gdevents_functions.php [Line: 804]
Source Code
function geodir_event_manager_ajax(){ $task = isset( $_REQUEST['task'] ) ? $_REQUEST['task'] : ''; switch( $task ) { case 'geodir_fill_listings' : $term = isset( $_REQUEST['term'] ) ? $_REQUEST['term'] : ''; echo geodir_event_fill_listings( $term ); exit; break; } if(isset($_REQUEST['event_type']) && $_REQUEST['event_type'] == 'calendar'){ geodir_event_display_calendar(); exit; } if(isset($_REQUEST['gd_event_general_settings'])){ geodir_update_options( geodir_event_general_setting_options() ); $msg = 'Your settings have been saved.'; $msg = urlencode($msg); $location = admin_url()."admin.php?page=geodirectory&tab=gd_event_fields_settings&subtab=gd_event_general_options&event_success=".$msg; wp_redirect($location); exit; } if(isset($_REQUEST['auto_fill']) && $_REQUEST['auto_fill'] == 'geodir_business_autofill'){ if(isset($_REQUEST['place_id']) && $_REQUEST['place_id'] != '' && isset($_REQUEST['_wpnonce'])) { if ( !wp_verify_nonce( $_REQUEST['_wpnonce'], 'geodir_link_business_autofill_nonce' ) ) exit; geodir_business_auto_fill($_REQUEST); exit; }else{ wp_redirect(home_url().'/?geodir_signup=true'); exit(); } } }