This is a bit of very badly written PHP code that will add a link under each post.
When clicking on “Delete Post” the post will instantly get deleted.

Only when you’re logged in as a administrator you’ll see the link.
Add this to your themes index.php file somewhere inside the loop.
if (current_user_can('administrator')) {
global $post;
$thepostid = $post->ID;
echo "<center>The Post ID: " . $thepostid . " ";
$thepostdeletelink = get_delete_post_link ( $id = $thepostid, $deprecated = '', $force_delete = false );
echo "<a href=\"$thepostdeletelink\" target=\"iframedelete\">Delete</a></center>";
echo '<iframe src="#" name="iframedelete" width="2" height="2" scrolling="no"></iframe><br>';
}Use it carefully since when clicked, it deletes the post instantly. That’s all.
Auto add ALT to WordPress featured images
I found this bit of PHP code that worked fine. What it does...
Move WordPress to new domain with full URL redirects
Disclaimer: If you break something, too bad. You're responsi...
Get Latest Post In WordPress (Tiny PHP Code)
Here’s a useful code snippet in PHP for WordPress to get a ...