wp_ajax_untrash_post

Ajax handler to restore a post from the trash.

Description

wp_ajax_untrash_post( (string) $action ); 

Parameters (1)

0. $action (string)
Action to perform.

Usage

  1. if ( !function_exists( 'wp_ajax_untrash_post' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ajax-actions.php'; 
  3.  
  4. // Action to perform. 
  5. $action = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_ajax_untrash_post($action); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ajax-actions.php  
  1. function wp_ajax_untrash_post( $action ) { 
  2. if ( empty( $action ) ) 
  3. $action = 'untrash-post'; 
  4. wp_ajax_trash_post( $action );