Ajax::send()
Description #
Send ajax response.
Source #
File: classes/ajax.php
public function send() { $this->add_res( 'success', $this->success ); $this->add_res( 'action', $this->action ); // Add snackbar message by default if not success. if ( false === $this->success && empty( $this->res['snackbar'] ) ) { $this->snackbar( __( 'Something went wrong.', 'anspress-question-answer' ) ); } ap_send_json( $this->res ); }
Expand full source code Collapse full source code View on GitHub: classes/ajax.php:202
Add your comment