<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Keep Walking &#187; Comment</title>
	<atom:link href="http://www.aowaa.com/tag/comment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aowaa.com</link>
	<description>Free Wordpress Theme, Make Money Online And Cool Gadgets</description>
	<lastBuildDate>Fri, 09 Jul 2010 15:44:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to Add Spam and Delete Action Links to WordPress Comments</title>
		<link>http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/</link>
		<comments>http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 03:24:39 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.aowaa.com/?p=198</guid>
		<description><![CDATA[As we know, we just only can see the edit action link in the comments of wordpress blog when we logged in. If you want to delete or mark the comments as spam, we should click the edit action link ,go into dashboard and finish the manipulation. And now, it’s easy to add the delete [...]]]></description>
			<content:encoded><![CDATA[<p>As we know, we just only can see the edit action link in the comments of <a href="http://www.aowaa.com/category/wordpress/" target="_self">wordpress</a> blog when we logged in. If you want to delete or mark the comments as spam, we should click the edit action link ,go into dashboard and finish the manipulation.</p>
<p>And now, it’s easy to add the delete and spam action link to the comment template, and you can clean your comments easily from the post. Firstly, you should open the <code>functions.php</code> file and add this code.</p>
<div id="attachment_199" class="wp-caption aligncenter" style="width: 532px"><img class="size-full wp-image-199 " title="del-spam" src="http://www.aowaa.com/wp-content/uploads/2009/08/del-spam.GIF" alt="del-spam" width="522" height="90" /><p class="wp-caption-text">Spam and Delete Link</p></div>
<p><span id="more-198"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:Consolas,Monaco,"Courier New",Courier,monospace;"><span style="color: #000000; font-weight: bold;">function</span> delete_comment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span>	<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'edit_post'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'| &lt;a href=&quot;'</span><span style="color: #339933;">.</span>admin_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&gt;del&lt;/a&gt; ';
		echo '| &lt;a href=&quot;</span><span style="color: #0000ff;">'.admin_url(&quot;&gt;spam&lt;/a&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And than, find the <code>edit_comment_link</code> function in your <code>comment.php</code> or the <code>functions.php</code> file, add this code after the <code>edit_comment_link</code> function.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:Consolas,Monaco,"Courier New",Courier,monospace;">delete_comment_link<span style="color: #009900;">&#40;</span>get_comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Your edit link code may look like this.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:Consolas,Monaco,"Courier New",Courier,monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_comment_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> delete_comment_link<span style="color: #009900;">&#40;</span>get_comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If you don&#8217;t like coding, you can try the <a href="http://wordpress.org/extend/plugins/wp-ajax-edit-comments/" target="_blank">WP AJAX Edit Comment</a> plugin. It&#8217;s an awesome and powerful <a href="http://www.aowaa.com/tag/plugin/" target="_self">wordpress plugin</a>.</p>
<p><img class="alignnone size-full wp-image-200" title="ajax-edit-comment" src="http://www.aowaa.com/wp-content/uploads/2009/08/ajax-edit-comment.jpg" alt="ajax-edit-comment" width="450" height="211" /></p>
<hr />
<p><small>© Alex for <a href="http://www.aowaa.com">Keep Walking</a>, 2009. |
<a href="http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/">Permalink</a> |
<a href="http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/&title=How to Add Spam and Delete Action Links to WordPress Comments">del.icio.us</a>
<br/>
Post tags: <a href="http://www.aowaa.com/tag/comment/" rel="tag">Comment</a>, <a href="http://www.aowaa.com/tag/hacks/" rel="tag">Hacks</a>, <a href="http://www.aowaa.com/tag/theme/" rel="tag">Theme</a>, <a href="http://www.aowaa.com/tag/tutorial/" rel="tag">Tutorial</a>, <a href="http://www.aowaa.com/tag/wordpress/" rel="tag">Wordpress</a><br/>
</small></p>
	<h3>Related posts: </h3>
	<ul class="st-related-posts">
	<li><a href="http://www.aowaa.com/how-to-get-thumbnail-automatically-from-wordpress-posts/" title="How to Get Thumbnail Automatically from WordPress Posts (April 24, 2009)">How to Get Thumbnail Automatically from WordPress Posts</a> (5)</li>
	<li><a href="http://www.aowaa.com/how-to-seo-your-wordpress-theme/" title="How to SEO Your WordPress Theme (December 18, 2008)">How to SEO Your WordPress Theme</a> (4)</li>
	<li><a href="http://www.aowaa.com/create-archives-page-without-any-plugin-wordpress/" title="How to Create Archives Page without Any Plugin in WordPress (September 2, 2009)">How to Create Archives Page without Any Plugin in WordPress</a> (2)</li>
	<li><a href="http://www.aowaa.com/how-to-add-colorful-tag-cloud-without-any-plugin-in-wordpress/" title="How to Add Colorful Tag Cloud without Any Plugin in WordPress (August 20, 2009)">How to Add Colorful Tag Cloud without Any Plugin in WordPress</a> (10)</li>
	<li><a href="http://www.aowaa.com/update-to-wordpress-27-and-change-the-theme/" title="Update to WordPress 2.7 And Change The Theme (December 12, 2008)">Update to WordPress 2.7 And Change The Theme</a> (3)</li>
	<li><a href="http://www.aowaa.com/the-collection-of-free-wordpress-theme-collection/" title="The Collection of Free WordPress Themes Collection (December 3, 2009)">The Collection of Free WordPress Themes Collection</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.aowaa.com/how-to-add-spam-and-delete-action-links-to-wordpress-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
