A WordPress-centric search engine for devs and theme authors



wp_ajax_untrash_post ›

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

Ajax handler to restore a post from the trash.



Source

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