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

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

Description

See also

Parameters

$argsstring|arrayoptional
Will be passed to add() method.

Default:''

Source

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

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

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