wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_ajax_untrash_post › WordPress Function

Depuis3.1.0
Dépréciéen/a
wp_ajax_untrash_post ( $action )
Paramètres:
  • (string) $action Action to perform.
    Requis: Oui
Défini(e) dans:
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 );
}