Uses
Uses | Description |
---|---|
wp-includes/class-wp-ajax-response.php: WP_Ajax_Response::add() | Appends data to an XML response based on given arguments. |
Constructor – Passes args to WP_Ajax_Response::add().
(string|array) (Optional) Will be passed to add() method.
Default value: ''
File: wp-includes/class-wp-ajax-response.php
public function __construct( $args = '' ) { if ( ! empty( $args ) ) { $this->add( $args ); } }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ajax_response/__construct