AP_Update_Helper::send( boolean $success, string $active, string $message, boolean $continue = false )
Description #
Send ajax response.
Parameters #
- $successboolean (Required) Is success.
- $activestring (Required) Active task slug.
- $messagestring (Required) Response message.
- $continueboolean (Optional) Continue oparation. Default value: false
Source #
File: admin/update.php
public function send( $success, $active, $message, $continue = false ) { $tasks = $this->get_tasks(); if ( ! in_array( false, $tasks ) ) { update_option( 'ap_update_helper', false ); } ap_ajax_json( array( 'success' => $success ? true: false, 'active' => $active, 'message' => $message, 'status' => $this->get_tasks(), 'continue' => $continue, ) ); }
Expand full source code Collapse full source code View on GitHub: admin/update.php:96
Add your comment