AP_Update_Helper::send( boolean $success, string $active, string $message, boolean $continue = false )

Description #

Send ajax response.

Parameters #

  • $success
    boolean (Required) Is success.
  • $active
    string (Required) Active task slug.
  • $message
    string (Required) Response message.
  • $continue
    boolean (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,
		) );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment