<?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>yorum kapatma | Sorun Çözümü</title>
	<atom:link href="https://www.soruncozumu.com/etiket/yorum-kapatma/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.soruncozumu.com</link>
	<description>Sorun Çözme Platformu - Türkçe Kaynak</description>
	<lastBuildDate>Tue, 27 Sep 2022 08:48:36 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.soruncozumu.com/wp-content/uploads/2015/05/cropped-favicon-100x100.png</url>
	<title>yorum kapatma | Sorun Çözümü</title>
	<link>https://www.soruncozumu.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPress Medya Sayfasını Yoruma Kapatma</title>
		<link>https://www.soruncozumu.com/wordpress-medya-sayfasini-yoruma-kapatma/</link>
					<comments>https://www.soruncozumu.com/wordpress-medya-sayfasini-yoruma-kapatma/#respond</comments>
		
		<dc:creator><![CDATA[SeLoRe]]></dc:creator>
		<pubDate>Sat, 02 May 2015 14:19:20 +0000</pubDate>
				<category><![CDATA[Webmaster]]></category>
		<category><![CDATA[medya]]></category>
		<category><![CDATA[resim]]></category>
		<category><![CDATA[sayfa]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[yorum kapatma]]></category>
		<guid isPermaLink="false">http://www.soruncozumu.com/?p=71</guid>

					<description><![CDATA[WordPress Medya Sayfasını Yoruma Kapatma WordPress'te yazılarımıza eklediğimiz dosyaların gösterildiği sayafayı yoruma kapatmak için temanızın functions.php dosyasına aşağıdaki kodları ekleyebilirsiniz. Kodlar disqus kullanan siteler için de geçerlidir aynı şekilde disqus yorumlarını da kapatır. Alternatif olarak bu Disable Comments eklentisini de kullanabilirsiniz.]]></description>
										<content:encoded><![CDATA[<p><strong>WordPress Medya Sayfasını Yoruma Kapatma</strong></p>
<p>WordPress'te yazılarımıza eklediğimiz dosyaların gösterildiği sayafayı yoruma kapatmak için temanızın <strong>functions.php</strong> dosyasına aşağıdaki kodları ekleyebilirsiniz. Kodlar disqus kullanan siteler için de geçerlidir aynı şekilde disqus yorumlarını da kapatır. Alternatif olarak bu <a title="Disable Comments" href="https://wordpress.org/plugins/disable-comments" rel="external noopener nofollow noreferrer" data-wpel-link="external" target="_blank">Disable Comments</a> eklentisini de kullanabilirsiniz.<span id="more-71"></span></p>
<pre class="brush: php; title: ; notranslate">/** Stop comments being used on Media Files **/
add_filter( 'comments_open', 'stopMediaComments', 10, 2 );
function stopMediaComments( $open, $post_id ) {
  $post = get_post( $post_id );
  if ( 'attachment' == $post-&gt;post_type )
    $open = false;
  return $open;
}

/** This is used to get around non-native WordPress plugins **/
add_filter('get_header', 'lcTurnCommentsOff');
function lcTurnCommentsOff(){
  global $post;
  if ( 'attachment' == $post-&gt;post_type )
    $post-&gt;comment_status=&quot;closed&quot;;
}</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.soruncozumu.com/wordpress-medya-sayfasini-yoruma-kapatma/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
