wp_ajax_untrash_post()WP 3.1.0

Ajax handler to restore a post from the Trash.

No Hooks.

Return

null. Nothing.

Usage

wp_ajax_untrash_post( $action );
$action(string) (required)
Action to perform.

Changelog

Since 3.1.0 Introduced.

Код wp_ajax_untrash_post() WP 6.1.1

function wp_ajax_untrash_post( $action ) {
	if ( empty( $action ) ) {
		$action = 'untrash-post';
	}

	wp_ajax_trash_post( $action );
}