Uses
| Uses | Description |
|---|---|
| wp-admin/includes/ajax-actions.php: wp_ajax_trash_post() | Ajax handler for sending a post to the Trash. |
Ajax handler to restore a post from the Trash.
(string) (Required) Action to perform.
File: wp-admin/includes/ajax-actions.php
function wp_ajax_untrash_post( $action ) {
if ( empty( $action ) ) {
$action = 'untrash-post';
}
wp_ajax_trash_post( $action );
} | Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_ajax_untrash_post