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

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


Description

Top ↑

See also


Top ↑

Parameters

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

Default: ''


Top ↑

Source

File: wp-includes/class-wp-ajax-response.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes

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