<?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 | youmin | Mentions</title>
	<link>https://buddypress.org/members/youmin/activity/mentions/</link>
	<atom:link href="https://buddypress.org/members/youmin/activity/mentions/feed/" rel="self" type="application/rss+xml" />
	<description>Activity feed mentioning youmin.</description>
	<lastBuildDate>Fri, 10 Apr 2026 06:18:51 +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">209ea539e4d4371e8ad55f6ac00abafa</guid>
				<title>Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to &#038; Troubleshooting</title>
				<link>https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232903</link>
				<pubDate>Sun, 25 Jan 2015 00:55:38 +0000</pubDate>

									<content:encoded><![CDATA[<p>Hi <a href="https://buddypress.org/members/youmin/" rel="nofollow ugc">@youmin</a></p>
<p>My post was this:</p>
<blockquote><p>
Just to point out, you can’t use or in PHP. Instead you should use a double pipe like this ||.
</p></blockquote>
<p>This is wrong! You can in fact use the <code>or</code> operator in PHP, it just takes a lower precedence than <code>||</code>. </p>
<p>Hence why I deleted my post.</p>
<p>Hope that clears things up.</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">f9ef19f382f8f699a4e8507949a4cbd8</guid>
				<title>Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to &#038; Troubleshooting</title>
				<link>https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232903</link>
				<pubDate>Sun, 25 Jan 2015 00:55:38 +0000</pubDate>

									<content:encoded><![CDATA[<p>Hi <a href="https://buddypress.org/members/youmin/" rel="nofollow ugc">@youmin</a></p>
<p>My post was this:</p>
<blockquote><p>
Just to point out, you can’t use <code>or</code> in PHP. Instead you should use a double pipe like this <code>||</code>.
</p></blockquote>
<p>This is wrong! You can in fact use the <code>or</code> operator in PHP, it just takes a lower precedence than <code>||</code>. </p>
<p>Hence why I deleted my post.</p>
<p>Hope that clears things up.</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cc4e5bef4ce820c83199333fc5bdadb5</guid>
				<title>Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to &#038; Troubleshooting</title>
				<link>https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232903</link>
				<pubDate>Sun, 25 Jan 2015 00:55:38 +0000</pubDate>

									<content:encoded><![CDATA[<p>Hi <a href="https://buddypress.org/members/youmin/" rel="nofollow ugc">@youmin</a></p>
<p>My post was this:</p>
<blockquote><p>Just to point out, you can’t use <code>or</code> in PHP. Instead you should use a double pipe like this <code>||</code>. So your code becomes:</p>
<p><code>if ( ( $userdata[&#039;role&#039;] == &quot;subscriber&quot; ) || ( $userdata[&#039;role&#039;] == &quot;contributor&quot; ) )<br />
    wp_update_user( $userdata );</code>
</p></blockquote>
<p>This is wrong! You can in fact use the <code>or</code> operator in PHP, it just takes a l&hellip;<span class="activity-read-more" id="activity-read-more-363146"><a href="https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232903" rel="nofollow ugc">[Read more]</a></span></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6729832552ca295cf92ac3d7197dd7bf</guid>
				<title>Henry Wright replied to the topic How To bp_set_member_type? in the forum Creating &#038; Extending</title>
				<link>https://buddypress.org/support/topic/how-to-bp_set_member_type/#post-232901</link>
				<pubDate>Sun, 25 Jan 2015 00:45:17 +0000</pubDate>

									<content:encoded><![CDATA[<p>Hi <a href="https://buddypress.org/members/youmin/" rel="nofollow ugc">@youmin</a></p>
<p>If you don&#8217;t already have your roles set-up then this is how you&#8217;d add them:</p>
<p><code>add_role(<br />
    &#039;student&#039;,<br />
    __( &#039;Student&#039; ),<br />
    array(<br />
        &#039;read&#039;         =&gt; true,  // true allows this capability<br />
        &#039;edit_posts&#039;   =&gt; true,<br />
        &#039;delete_posts&#039; =&gt; false, // Use false to explicitly deny<br />
    )<br />
);</code></p>
<p>The 3rd parameter is where&hellip;<span class="activity-read-more" id="activity-read-more-363143"><a href="https://buddypress.org/support/topic/how-to-bp_set_member_type/#post-232901" rel="nofollow ugc">[Read more]</a></span></p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>