<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Admin Bar for editors custom code? - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/admin-bar-for-editors-custom-code/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 18 Aug 2026 02:39:47 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Admin Bar for editors custom code?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/admin-bar-for-editors-custom-code/#post-16791</link>
                        <pubDate>Sun, 10 Jun 2018 09:09:24 +0000</pubDate>
                        <description><![CDATA[You can use this code in your current active theme functions.phpfunction my_admin_bar_control_function() {    if (current_user_can(&#039;administrator&#039;) || current_user_can(&#039;editor&#039;) ) {        s...]]></description>
                        <content:encoded><![CDATA[<p>You can use this code in your current active theme functions.php</p><pre><span style="color: #008d00;font-weight: bold">function </span><span style="color: #0000e5;font-weight: bold">my_admin_bar_control_function</span>() <span style="color: #5163ac">{<br /></span>    <span style="color: #008d00;font-weight: bold">if </span>(<span style="color: #0000e5;font-style: italic">current_user_can</span>(<span style="color: #c64741">'administrator'</span>) <span style="color: #000080">|| </span><span style="color: #0000e5;font-style: italic">current_user_can</span>(<span style="color: #c64741">'editor'</span>) ) <span style="color: #5163ac">{<br /></span>        <span style="color: #0000e5;font-style: italic">show_admin_bar</span>(<span style="color: #008d00;font-weight: bold">true</span>)<span style="color: #313131">;<br /></span>    <span style="color: #5163ac">} </span><span style="color: #008d00;font-weight: bold">else </span><span style="color: #5163ac">{<br /></span>        <span style="color: #0000e5;font-style: italic">show_admin_bar</span>(<span style="color: #008d00;font-weight: bold">false</span>)<span style="color: #313131">;<br /></span>    <span style="color: #5163ac">}<br /></span><span style="color: #5163ac">}<br /></span><span style="color: #0000e5;font-style: italic">add_action</span>(<span style="color: #c64741">'init'</span><span style="color: #000080">, </span><span style="color: #c64741">'my_admin_bar_control_function'</span><span style="color: #000080">, 20</span>)<span style="color: #313131">;</span></pre><p><a href="http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" target="true">How to Easily Add Custom Code in WordPress (without Breaking Your Site)</a></p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/admin-bar-for-editors-custom-code/#post-16791</guid>
                    </item>
				                    <item>
                        <title>Admin Bar for editors custom code?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/admin-bar-for-editors-custom-code/#post-16738</link>
                        <pubDate>Thu, 07 Jun 2018 22:37:25 +0000</pubDate>
                        <description><![CDATA[I&#039;m curious if there is any work around with code or other means to allow the admin bar for editors without enabling for all members? 
Screen-Shot-2018-06-07-at-6.36.47-PM.png]]></description>
                        <content:encoded><![CDATA[<p>I'm curious if there is any work around with code or other means to allow the admin bar for editors without enabling for all members? </p>
<div id="wpfa-" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1528411046-Screen-Shot-2018-06-07-at-63647-PM.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i>Screen-Shot-2018-06-07-at-6.36.47-PM.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>willcrall</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/admin-bar-for-editors-custom-code/#post-16738</guid>
                    </item>
							        </channel>
        </rss>
		