wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_ajax_untrash_post › WordPress Function

Since3.1.0
Deprecatedn/a
wp_ajax_untrash_post ( $action )
Parameters:
  • (string) $action Action to perform.
    Required: Yes
Defined at:
Codex:

Handles restoring a post from the Trash via AJAX.



Source

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

	wp_ajax_trash_post( $action );
}