WP_Ajax_Response::__construct( string|array $args = '' )

Constructor – Passes args to WP_Ajax_Response::add().


Description Description

See also See also


Top ↑

Parameters Parameters

$args

(string|array) (Optional) Will be passed to add() method.

Default value: ''


Top ↑

Source Source

File: wp-includes/class-wp-ajax-response.php

	public function __construct( $args = '' ) {
		if ( ! empty( $args ) ) {
			$this->add( $args );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.