Thread
:
wordpress question: delete post tag for inclusion in themes?
View Single Post
04-01-2010, 10:37 AM
fris
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
you could probably add a bit of ajax, so it reloads the page after delete.
theirs also a function in 2.9+ wp_delete_post() which requires the postid
Code:
global $post; wp_delete_post($post->ID);
but the other one works for previos versions
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
WP Stuff
fris
View Public Profile
Find More Posts by fris