wp_ajax_untrash_post( string $action )

Ajax handler to restore a post from the Trash.

Parameters Parameters


(string) (Required) Action to perform.

Top ↑

Source Source

File: wp-admin/includes/ajax-actions.php

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

	wp_ajax_trash_post( $action );

Top ↑

Changelog Changelog

Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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