[ Index ]

PHP Cross Reference of WordPress




/wp-includes/ -> class-wp-ajax-response.php (summary)

(no description)

File Size: 164 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Ajax_Response:: (3 methods):

Class: WP_Ajax_Response  - X-Ref

Send XML response back to Ajax request.

__construct( $args = '' )   X-Ref
Constructor - Passes args to WP_Ajax_Response::add().

since: 2.1.0
param: string|array $args Optional. Will be passed to add() method.

add( $args = '' )   X-Ref
Appends data to an XML response based on given arguments.

With `$args` defaults, extra data output would be:

<response action='{$action}_$id'>
<$what id='$id' position='$position'>

return: string XML response.
since: 2.1.0
param: string|array $args {

send()   X-Ref
Display XML formatted responses.

Sets the content type header to text/xml.

since: 2.1.0

Generated: Sun Jun 26 01:00:03 2022 Cross-referenced by PHPXref 0.7.1