src/Ajaxer.php
public function ajax_request() {
		$action  = ( isset( $_REQUEST['action'] ) && ! empty( $_REQUEST['action'] ) ) ? $_REQUEST['action'] : false;
		$_action = $this->extract_action_slug( $action );

		if ( false !== $action && isset( $this->actions[ $_action ] ) ) {
			if ( is_array( $this->actions[ $_action ] ) && isset( $this->actions[ $_action ]['callback'] ) ) {
				call_user_func( $this->actions[ $_action ]['callback'] );
				\wp_die();
			} else {
				$this->trigger_ajax_callback( $_action );
			}
		}
		\wp_die( 0 );
	}
public function ajax_request() {
		$action  = ( isset( $_REQUEST['action'] ) && ! empty( $_REQUEST['action'] ) ) ? $_REQUEST['action'] : false;
		$_action = $this->extract_action_slug( $action );

		if ( false !== $action && isset( $this->actions[ $_action ] ) ) {
			if ( is_array( $this->actions[ $_action ] ) && isset( $this->actions[ $_action ]['callback'] ) ) {
				call_user_func( $this->actions[ $_action ]['callback'] );
				\wp_die();
			} else {
				$this->trigger_ajax_callback( $_action );
			}
		}
		\wp_die( 0 );
	}
Handles Multiple Ajax Requests.