When the user chooses to restore a post ( from "Trash" folder ) with the following way, through the action untrash_post, i get the id of the posts.
function my_untrash_post_type( $post_id )
{
echo '<script> alert('.$post_id.'); </script>';
wp_die('stop');
}
add_action('untrash_post' , 'my_untrash_post_type');
But if the user chooses more than one, posts to restore them, i cannot find the way in which will be able to get all the ids of the selected posts. How could i do that?