Use wp_ajax_(action) to add a custom Ajax URL for WordPress to send Ajax requests to the back-end handler.
function description
wp_ajax_(action) is the self hook that allows us to mount a custom function to handle our own Ajax requests. The wp_ajax_ hook has the format "wp_ajax_$your_action", $your_action is the 'action' of the Ajax request...