Function
Send an AJAX success response.
tml_send_ajax_success( mixed $data = null )
Parameters
-
$datamixed Defaultnull - Data to send with the response.
Source
function tml_send_ajax_success( $data = null ) {
/**
* Filters the AJAX success data.
*
* @since 7.1
*
* @param mixed $data The AJAX success data.
*/
$data = apply_filters( 'tml_ajax_success_data', $data );
wp_send_json_success( $data );
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.1 | Introduced. |