<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: 🗨 Dismissible notices that persist when refreshing the WordPress admin screens	</title>
	<atom:link href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/</link>
	<description>Balancing brackets for a living</description>
	<lastBuildDate>Wed, 20 Dec 2023 10:32:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: alexg		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-6582</link>

		<dc:creator><![CDATA[alexg]]></dc:creator>
		<pubDate>Thu, 19 Jul 2018 08:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-6582</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-6579&quot;&gt;Robert&lt;/a&gt;.

The instructions in the article are for plugin developers, to make their own notices dismissible. The plugin you suggest would be very different and I believe many such plugins exist. After a quick google search it seems you are looking for something like &lt;a href=&quot;https://www.barrykooij.com/wordpress-notification-manager/&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot;&gt;WordPress Notification Manager&lt;/a&gt;?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-6579">Robert</a>.</p>
<p>The instructions in the article are for plugin developers, to make their own notices dismissible. The plugin you suggest would be very different and I believe many such plugins exist. After a quick google search it seems you are looking for something like <a href="https://www.barrykooij.com/wordpress-notification-manager/" target="_blank" rel="noopener nofollow">WordPress Notification Manager</a>?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-6579</link>

		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Wed, 18 Jul 2018 14:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-6579</guid>

					<description><![CDATA[any chance you can make a plugin out of this. I would like to hide notices that do not have dismiss options.

running a multisite it is very annoying.]]></description>
			<content:encoded><![CDATA[<p>any chance you can make a plugin out of this. I would like to hide notices that do not have dismiss options.</p>
<p>running a multisite it is very annoying.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alexg		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-4326</link>

		<dc:creator><![CDATA[alexg]]></dc:creator>
		<pubDate>Tue, 16 Jan 2018 08:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-4326</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2867&quot;&gt;Mike&lt;/a&gt;.

You are correct in that this is a good improvement.

As for transients, I would like to use them in theory, but I&#039;ve found many times that they do not operate as expected in actual people&#039;s installations. Haven&#039;t dug deep into this though. If they work for you, then great.

Thank you very much for sharing your code!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2867">Mike</a>.</p>
<p>You are correct in that this is a good improvement.</p>
<p>As for transients, I would like to use them in theory, but I&#8217;ve found many times that they do not operate as expected in actual people&#8217;s installations. Haven&#8217;t dug deep into this though. If they work for you, then great.</p>
<p>Thank you very much for sharing your code!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alexg		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-4325</link>

		<dc:creator><![CDATA[alexg]]></dc:creator>
		<pubDate>Tue, 16 Jan 2018 08:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-4325</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-4319&quot;&gt;mgongee&lt;/a&gt;.

Thank you, I&#039;m glad you found it useful! :-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-4319">mgongee</a>.</p>
<p>Thank you, I&#8217;m glad you found it useful! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mgongee		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-4319</link>

		<dc:creator><![CDATA[mgongee]]></dc:creator>
		<pubDate>Mon, 15 Jan 2018 21:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-4319</guid>

					<description><![CDATA[Good article. I&#039;ve used it to build dismissable global notices in my WP plugin.]]></description>
			<content:encoded><![CDATA[<p>Good article. I&#8217;ve used it to build dismissable global notices in my WP plugin.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2867</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Thu, 21 Sep 2017 09:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-2867</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2835&quot;&gt;alexg&lt;/a&gt;.

Agree, and thanks for the article :)

I&#039;ve been through this and a couple of things I&#039;d tweak (personally).

You have this line

myplugin_dismissed_{$admin_notice-&#062;dismiss_option}

which will always save myplugin_dismissed_1  so if I want to do various notices throughout my plugin dismissing one seems to dismiss them all 

why not do:-

myplugin_dismissed_{$admin_notice-&#062;dismiss_name}

passing

$this-&#062;notice( &#039;error&#039;, $message, $dismiss_option, $dismiss_name );

I&#039;ve also tweaked it to give the option of set_transient for dismissible notices which return after a set period :)

Put my tweaks here: https://pastebin.com/JJSrmdrH]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2835">alexg</a>.</p>
<p>Agree, and thanks for the article 🙂</p>
<p>I&#8217;ve been through this and a couple of things I&#8217;d tweak (personally).</p>
<p>You have this line</p>
<p>myplugin_dismissed_{$admin_notice-&gt;dismiss_option}</p>
<p>which will always save myplugin_dismissed_1  so if I want to do various notices throughout my plugin dismissing one seems to dismiss them all </p>
<p>why not do:-</p>
<p>myplugin_dismissed_{$admin_notice-&gt;dismiss_name}</p>
<p>passing</p>
<p>$this-&gt;notice( &#8216;error&#8217;, $message, $dismiss_option, $dismiss_name );</p>
<p>I&#8217;ve also tweaked it to give the option of set_transient for dismissible notices which return after a set period 🙂</p>
<p>Put my tweaks here: <a href="https://pastebin.com/JJSrmdrH" rel="nofollow ugc">https://pastebin.com/JJSrmdrH</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alexg		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2835</link>

		<dc:creator><![CDATA[alexg]]></dc:creator>
		<pubDate>Tue, 19 Sep 2017 16:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-2835</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2829&quot;&gt;Mike&lt;/a&gt;.

Yes this is one feature that should eventually go into core I think.

You call the function  as 
&lt;pre&gt;
$notices = MyPlugin_Admin_Notices::get_instance();
$notices-&gt;error( &#039;something broke&#039;, &#039;user-knows-something-broke&#039; );
&lt;/pre&gt;

Of course it will not work if you call it after the admin_notices action fires.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2829">Mike</a>.</p>
<p>Yes this is one feature that should eventually go into core I think.</p>
<p>You call the function  as </p>
<pre>
$notices = MyPlugin_Admin_Notices::get_instance();
$notices->error( 'something broke', 'user-knows-something-broke' );
</pre>
<p>Of course it will not work if you call it after the admin_notices action fires.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://www.alexgeorgiou.gr/persistently-dismissible-notices-wordpress/#comment-2829</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Tue, 19 Sep 2017 08:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexgeorgiou.gr/?p=154#comment-2829</guid>

					<description><![CDATA[Nice code, it would be good to see WordPress do this as part of their is-dismissible.

Would be nice to see this article show how one would make an admin notice appear using the class.]]></description>
			<content:encoded><![CDATA[<p>Nice code, it would be good to see WordPress do this as part of their is-dismissible.</p>
<p>Would be nice to see this article show how one would make an admin notice appear using the class.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
