<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>BuddyPress.org | 0901091 | Mentions</title>
	<link>https://buddypress.org/members/0901091-1/activity/mentions/</link>
	<atom:link href="https://buddypress.org/members/0901091-1/activity/mentions/feed/" rel="self" type="application/rss+xml" />
	<description>Activity feed mentioning 0901091.</description>
	<lastBuildDate>Fri, 10 Apr 2026 02:43:44 +0000</lastBuildDate>
	<generator>https://buddypress.org/?v=</generator>
	<language>en-US</language>
	<ttl>30</ttl>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	
						<item>
				<guid isPermaLink="false">c2427cefc5303ca120fe704cd96069ac</guid>
				<title>bp-help replied to the topic Redirect if not logged in and not on register page in the forum Creating &#038; Extending</title>
				<link>https://buddypress.org/support/topic/redirect-if-not-logged-in-and-not-on-register-page/#post-214473</link>
				<pubDate>Thu, 16 Oct 2014 17:28:50 +0000</pubDate>

									<content:encoded><![CDATA[<p><a href="https://buddypress.org/members/0901091-1/" rel="nofollow ugc">@0901091-1</a><br />
Not sure if this is exactly what you need and I didn&#8217;t test it but you can try it out:<br />
<code><br />
&lt;?php<br />
function my_redirecter() {<br />
    if ( !is_user_logged_in() &amp;&amp; !is_home() )<br />
	{<br />
        wp_redirect( home_url() );<br />
		exit();<br />
    }<br />
	else<br />
	{<br />
	}<br />
}<br />
add_action( &#039;init&#039;, &#039;my_redirecter&#039; );<br />
?&gt;<br />
</code></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e95a5c195eb9b87139911af412b85fe0</guid>
				<title>bp-help replied to the topic Redirect if not logged in and not on register page in the forum Creating &#038; Extending</title>
				<link>https://buddypress.org/support/topic/redirect-if-not-logged-in-and-not-on-register-page/#post-213754</link>
				<pubDate>Wed, 15 Oct 2014 13:46:00 +0000</pubDate>

									<content:encoded><![CDATA[<p><a href="https://buddypress.org/members/0901091-1/" rel="nofollow ugc">@0901091-1</a><br />
Untested but you can try this:<br />
<code><br />
&lt;?php<br />
function my_redirecter() {<br />
    if ( ! is_user_logged_in() &amp;&amp; !bp_is_register_page() )<br />
	{<br />
        wp_redirect( home_url() . &#039;/register/&#039;);<br />
		exit();<br />
    }<br />
	else<br />
	{<br />
	}<br />
}<br />
add_action( &#039;init&#039;, &#039;my_redirecter&#039; );<br />
?&gt;<br />
</code></p>
<p>Not sure what you wanted to do with the else so I left it&hellip;</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>