<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Add a Metabox to the Edit Comments Screen	</title>
	<atom:link href="https://www.shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/feed" rel="self" type="application/rss+xml" />
	<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen</link>
	<description>Adventures in WordPress</description>
	<lastBuildDate>Fri, 28 Mar 2014 07:48:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9</generator>
	<item>
		<title>
		By: Hasan		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-95743</link>

		<dc:creator><![CDATA[Hasan]]></dc:creator>
		<pubDate>Fri, 28 Mar 2014 07:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-95743</guid>

					<description><![CDATA[How can I remove the core author metabox from Edit Comments Screen?]]></description>
			<content:encoded><![CDATA[<p>How can I remove the core author metabox from Edit Comments Screen?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mr Alexander		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-95197</link>

		<dc:creator><![CDATA[Mr Alexander]]></dc:creator>
		<pubDate>Mon, 03 Mar 2014 15:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-95197</guid>

					<description><![CDATA[Hi,

Thanks for the tip, useful. Interesting to know that &#039;comment&#039; is not one of the options for &quot;post_type&quot; when calling &quot;add_meta_box&quot;, 4th argument.

Also, you forgot to mention that you need to hook the add_meta_boxes before you can call the &quot;add_meta_box&quot; function you created as in:

add_action( &#039;add_meta_boxes&#039;, &#039;add_meta_boxes&#039; );

function add_meta_boxes()
{
    // Add to the admin_init function
    add_meta_box(&#039;shiba_comment_xtra_box&#039;, __(&#039;Extra Arguments&#039;), &#039;my_metabox&#039;, &#039;comment&#039;, &#039;normal&#039;);
}]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the tip, useful. Interesting to know that &#8216;comment&#8217; is not one of the options for &#8220;post_type&#8221; when calling &#8220;add_meta_box&#8221;, 4th argument.</p>
<p>Also, you forgot to mention that you need to hook the add_meta_boxes before you can call the &#8220;add_meta_box&#8221; function you created as in:</p>
<p>add_action( &#8216;add_meta_boxes&#8217;, &#8216;add_meta_boxes&#8217; );</p>
<p>function add_meta_boxes()<br />
{<br />
    // Add to the admin_init function<br />
    add_meta_box(&#8216;shiba_comment_xtra_box&#8217;, __(&#8216;Extra Arguments&#8217;), &#8216;my_metabox&#8217;, &#8216;comment&#8217;, &#8216;normal&#8217;);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Xion		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-72377</link>

		<dc:creator><![CDATA[Xion]]></dc:creator>
		<pubDate>Tue, 23 Apr 2013 18:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-72377</guid>

					<description><![CDATA[Hello,

Can you give me a hint how can I remove the &#039;namediv&#039; metabox from this editcomment screen?]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Can you give me a hint how can I remove the &#8216;namediv&#8217; metabox from this editcomment screen?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Xion		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-71622</link>

		<dc:creator><![CDATA[Xion]]></dc:creator>
		<pubDate>Fri, 19 Apr 2013 18:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-71622</guid>

					<description><![CDATA[Hello,

Thanks for this great tutorial. I want to give comment author to edit his own comment. So need to disable the name, email and url field from the Author metabox also disable to edit the comment date and time to edit. But not with css want to do it with filter or hook.

Comment author can just update the content.

I tried to remove the metabox with remove_meta_box( &#039;namediv&#039; , &#039;comment&#039; , &#039;normal&#039; );

but did not work.

Can tell me how can I do it?]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for this great tutorial. I want to give comment author to edit his own comment. So need to disable the name, email and url field from the Author metabox also disable to edit the comment date and time to edit. But not with css want to do it with filter or hook.</p>
<p>Comment author can just update the content.</p>
<p>I tried to remove the metabox with remove_meta_box( &#8216;namediv&#8217; , &#8216;comment&#8217; , &#8216;normal&#8217; );</p>
<p>but did not work.</p>
<p>Can tell me how can I do it?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-51290</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Sun, 27 Jan 2013 17:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-51290</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-51192&quot;&gt;Ren&lt;/a&gt;.

Hello Ren,

The arguments passed in depends on which WordPress &lt;em&gt;hook&lt;/em&gt; we use. In the example above, I used the &#039;comment_save_pre&#039; hook, which passes back the comment content argument. This is set in WP native code. Here is more on &lt;a href=&quot;http://codex.wordpress.org/Plugin_API&quot; rel=&quot;nofollow&quot;&gt;WordPress hooks&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-51192">Ren</a>.</p>
<p>Hello Ren,</p>
<p>The arguments passed in depends on which WordPress <em>hook</em> we use. In the example above, I used the &#8216;comment_save_pre&#8217; hook, which passes back the comment content argument. This is set in WP native code. Here is more on <a href="http://codex.wordpress.org/Plugin_API" rel="nofollow">WordPress hooks</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ren		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-51192</link>

		<dc:creator><![CDATA[Ren]]></dc:creator>
		<pubDate>Sat, 26 Jan 2013 19:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-51192</guid>

					<description><![CDATA[Thanks for this tutorial, Shiba. I just have a question for the sake of understanding and learning more. 

Why does the &#039;save_mycomment_data&#039; function takes in $comment_content as a parameter? Can it take $comment or $comment_id as a parameter? 

For most tutorials on adding meta boxes on pages or posts, the save data function always takes in $post_id as a parameter. Why is it different on saving comment data? Thanks in advance for your answer!]]></description>
			<content:encoded><![CDATA[<p>Thanks for this tutorial, Shiba. I just have a question for the sake of understanding and learning more. </p>
<p>Why does the &#8216;save_mycomment_data&#8217; function takes in $comment_content as a parameter? Can it take $comment or $comment_id as a parameter? </p>
<p>For most tutorials on adding meta boxes on pages or posts, the save data function always takes in $post_id as a parameter. Why is it different on saving comment data? Thanks in advance for your answer!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23892</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Wed, 08 Aug 2012 19:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-23892</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23082&quot;&gt;Heidzir&lt;/a&gt;.

Update - I checked it out and all you need to do is expand the screen check condition to include the post screen. For example-
&lt;pre&gt;
if (in_array($screen-&gt;id, array(&#039;edit-comments&#039;,&#039;post&#039;)) ) {
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23082">Heidzir</a>.</p>
<p>Update &#8211; I checked it out and all you need to do is expand the screen check condition to include the post screen. For example-</p>
<pre>
if (in_array($screen->id, array('edit-comments','post')) ) {
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23400</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Wed, 01 Aug 2012 14:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-23400</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23082&quot;&gt;Heidzir&lt;/a&gt;.

I do my comment edits on the comment admin screens so this is not something I have looked at.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23082">Heidzir</a>.</p>
<p>I do my comment edits on the comment admin screens so this is not something I have looked at.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Heidzir		</title>
		<link>https://shibashake.com/wp/add-a-metabox-to-the-edit-comments-screen/comment-page-1#comment-23082</link>

		<dc:creator><![CDATA[Heidzir]]></dc:creator>
		<pubDate>Fri, 27 Jul 2012 08:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=10404#comment-23082</guid>

					<description><![CDATA[Hi,

Thanks for posting on extend metabox in commend edit screen.

It really works. but how to extend it in comment metabox when you at post edit screen? 

Thank you.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for posting on extend metabox in commend edit screen.</p>
<p>It really works. but how to extend it in comment metabox when you at post edit screen? </p>
<p>Thank you.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 10/23 objects using disk
Page Caching using disk: enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn.shibashake.com
Lazy Loading (feed)
Minified using disk
Database Caching 2/26 queries in 0.022 seconds using disk (Request-wide modification query)

Served from: www.shibashake.com @ 2024-12-17 00:36:01 by W3 Total Cache
-->