WP_Ajax_Response::__construct

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$args

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

Default value: ''

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

See also See also

Advertisement

Leave a Reply

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

What are you looking for?