Customized ‘edit comment’ link?
-
I’m trying to figure out how I could do the following.
I have a row of buttons for each comment. One of them is the “edit” button which I would only like to display if the user has the right to edit said comment.
Using the default
edit_comment_link()
function does not work for me as I need to include a span inside the anchor tag.Here is the HTML that displays the edit button and a ‘tooltip’ when user mouses over the button, hence the span:
<li class="edit"><a href="#" title="Edit this comment"><span>Edit this comment</span></a></li>
I figure there must be a way to set a condition to display the link based on the user’s status, but I don’t know what I’m looking for.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Customized ‘edit comment’ link?’ is closed to new replies.