wp_ajax_untrash_post( string $action )

In this article

Handles restoring a post from the Trash via AJAX.

Parameters

$actionstringrequired
Action to perform.

Source

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

	wp_ajax_trash_post( $action );
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.