WP_Ajax_Response::__construct()publicWP 2.1.0

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

Метод класса: WP_Ajax_Response{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Ajax_Response = new WP_Ajax_Response();
$WP_Ajax_Response->__construct( $args );
$args(строка|массив)
Will be passed to add() method.
По умолчанию: ''

Заметки

Список изменений

С версии 2.1.0 Введена.

Код WP_Ajax_Response::__construct() WP 6.5.2

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