wp_ajax_untrash_post

Advertisement

Summery Summery

Ajax handler to restore a post from the Trash.

Syntax Syntax

wp_ajax_untrash_post( string $action )

Parameters Parameters

$action

(Required) Action to perform.

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 );
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply