<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: Fjern adminbar, hvilken metode</title>
		<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode</link>
		<description>WordPress DK Forum Topic: Fjern adminbar, hvilken metode</description>
		<language>da-DK</language>
		<pubDate>Thu, 20 Aug 2026 07:17:13 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/fjern-adminbar-hvilken-metode" rel="self" type="application/rss+xml" />

		<item>
			<title>René Skou om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47790</link>
			<pubDate>søn, 26 maj 2013 22:28:37 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">47790@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Ok jeg fandt svaret ved at kigge i koden :)&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;&#60;br /&#62;
/**&#60;br /&#62;
9	 * Instantiate the admin bar object and set it up as a global for access elsewhere.&#60;br /&#62;
10	 *&#60;br /&#62;
11	 * To hide the admin bar, you're looking in the wrong place. Unhooking this function will not&#60;br /&#62;
12	 * properly remove the admin bar. For that, use show_admin_bar(false) or the show_admin_bar filter.&#60;br /&#62;
13	 *&#60;br /&#62;
14	 * @since 3.1.0&#60;br /&#62;
15	 * @access private&#60;br /&#62;
16	 * @return bool Whether the admin bar was successfully initialized.&#60;br /&#62;
17	 */&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;&#60;br /&#62;
add_action( 'init', '_wp_admin_bar_init' ); // Don't remove. Wrong way to disable.&#60;br /&#62;
&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;Kilde: &#60;a href=&#34;http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/admin-bar.php#L0&#34; rel=&#34;nofollow&#34;&#62;http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/admin-bar.php#L0&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Det vil sige at den rigtige metode til at fjerne adminbar på i følge udvikleren er metode 1.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>René Skou om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47789</link>
			<pubDate>søn, 26 maj 2013 22:23:39 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">47789@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej Morten &#60;/p&#62;
&#60;p&#62;Tak for svaret, jeg er godt klar over hvordan man fjerner adminbar, det jeg efterspøger/søger er en dybere forståelse af de to metoder.&#60;/p&#62;
&#60;p&#62;Foreksempel gør metode 2 mere end metoder 1 ? Jeg har ihvertfald ikke kunne finde noget svar på det nogen steder, og det er lidt svært at skulle lede hele core koden igennem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Morten Knudsen om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47788</link>
			<pubDate>søn, 26 maj 2013 21:52:13 +0000</pubDate>
			<dc:creator>Morten Knudsen</dc:creator>
			<guid isPermaLink="false">47788@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;amras - kender ikke svaret, men måske kan du &#34;hugge&#34; det fra nogen af de plugins der allerede er lavet til formålet - f.eks.&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/plugins/wp-admin-bar-removal/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/plugins/wp-admin-bar-removal/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;og&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/plugins/wp-toolbar-removal/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/plugins/wp-toolbar-removal/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Henning om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47787</link>
			<pubDate>søn, 26 maj 2013 21:24:03 +0000</pubDate>
			<dc:creator>Henning</dc:creator>
			<guid isPermaLink="false">47787@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg kan ikke rigtig se formålet.&#60;br /&#62;
Den indeholder så vidt jeg ved kun noget, der er relateret til den profil man har - admin, redaktør, forfatter osv.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>René Skou om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47786</link>
			<pubDate>søn, 26 maj 2013 21:20:38 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">47786@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Ja men den fungere jo kun ved sin egen profil, hvis man nu vil fjerne den ved alle som ikke har admin rettigheder.&#60;/p&#62;
&#60;p&#62;eksemple&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
if(!current_user_can('manage_option')) {&#60;br /&#62;
show_admin_bar(false);&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Henning om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47785</link>
			<pubDate>søn, 26 maj 2013 21:16:10 +0000</pubDate>
			<dc:creator>Henning</dc:creator>
			<guid isPermaLink="false">47785@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Brugere &#38;gt; profil
&#60;/p&#62;</description>
		</item>
		<item>
			<title>René Skou om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47784</link>
			<pubDate>søn, 26 maj 2013 21:13:53 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">47784@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Det er den mørkegrå linje der er øverst, når man er logget ind.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Henning om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47783</link>
			<pubDate>søn, 26 maj 2013 21:11:46 +0000</pubDate>
			<dc:creator>Henning</dc:creator>
			<guid isPermaLink="false">47783@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hvis det er den, der i den danske oversættelse også kaldes værktøjslinien, så kan et flueben da gøre det :-))
&#60;/p&#62;</description>
		</item>
		<item>
			<title>René Skou om "Fjern adminbar, hvilken metode"</title>
			<link>http://wp-danmark.dk/forum/topic/fjern-adminbar-hvilken-metode#post-47781</link>
			<pubDate>søn, 26 maj 2013 20:22:12 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">47781@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hejsa allesammen&#60;/p&#62;
&#60;p&#62;Hvis man nu ønsker at fjerne adminbar hvliken metode er så bedst ?&#60;/p&#62;
&#60;p&#62;1.&#60;br /&#62;
&#60;code&#62;show_admin_bar(false);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;2.&#60;br /&#62;
&#60;code&#62;remove_action( 'init', 'wp_admin_bar_init' );&#60;br /&#62;
add_action( 'show_admin_bar', '__return_false' );&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
