insert PHP code in the right way
-
Hello
The following PHP code let alloy the user to delete a post
But I have difficulties insert it to “Woody AD SNIPPETS” plugin according the php code inside it
I am not expert in PHP
I founded this code in clicknathan website and it is working in another plugin, but I want it works in “Woody AD SNIPPETS” plugin since I want it to be add automatically to any post
Can you help me please?<?php if ($post->post_author == $current_user->ID) { ?> <p><a onclick="return confirm('Are you SURE you want to delete this post?')" href="<?php echo get_delete_post_link( $post->ID ) ?>">Delete post</a></p> <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘insert PHP code in the right way’ is closed to new replies.