<?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>WpFunc &#187; private</title>
	<atom:link href="http://wpfunc.com/tag/private/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Remove Protected and Private from title!</title>
		<link>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html</link>
		<comments>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:00:19 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[protected]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=405</guid>
		<description><![CDATA[Add this code to functions.php in theme directory. This code removes &#8220;protected&#8221; and &#8220;private&#8221; prefixs from your article titles. Let&#8217;s Begin&#8230; Here is the code; That&#8217;s All!]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Add this code to <span style="color: #ff0000;"><strong>functions.php</strong></span> in theme directory. This code removes &#8220;<strong>protected</strong>&#8221; and &#8220;<strong>private</strong>&#8221; prefixs from your article titles. Let&#8217;s Begin&#8230;</p>
<p><span id="more-405"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">function the_title_trim($title) {
	$title = attribute_escape($title);
	$findthese = array(
		'#Protected:#',
		'#Private:#'
	);
	$replacewith = array(
		'', // What to replace &quot;Protected:&quot; with
		'' // What to replace &quot;Private:&quot; with
	);
	$title = preg_replace($findthese, $replacewith, $title);
	return $title;
}
add_filter('the_title', 'the_title_trim');
</pre>
<p>That&#8217;s All!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

