This is the function I want to execute:
function confirm_delete(comment_ID) {
<?php wp_delete_comment( $comment_id ) ?>
}
I need to get var comment_ID into $comment_id ??
Any ideas if this is possible?
Also can you just run php from within javascript like this?
Many thanks for any light you can shed on this
All the best
John ;-)
I don't make mistakes, I'm merely beta-testing life.
function confirm_delete(comment_ID) {
<?php wp_delete_comment( $comment_id ) ?>
}
I need to get var comment_ID into $comment_id ??
Any ideas if this is possible?
Also can you just run php from within javascript like this?
Many thanks for any light you can shed on this
All the best
John ;-)
I don't make mistakes, I'm merely beta-testing life.