WP_Ajax_Response::__construct( string|array $args = '' )
Constructor – Passes args to WP_Ajax_Response::add().
Contents
Description Description
See also See also
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 );
}
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |