Proper way to use WordPress function with AJAX PHP file
Yes, using admin-ajax.php is the way to go here. To use it, you would do something like the following: in vote_database_update.php // hook into admin-ajax // the text after ‘wp_ajax_’ and ‘wp_ajax_no_priv_’ in the add_action() calls // that follow is what you will use as the value of data.action in the ajax // call in … Read more