<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>カウントダウン &#8211; WordPress Memo</title>
	<atom:link href="https://blog.riverforest-wp.info/tag/%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%83%80%E3%82%A6%E3%83%B3/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.riverforest-wp.info</link>
	<description>WordPress に関する覚え書き</description>
	<lastBuildDate>Fri, 09 May 2025 12:48:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.riverforest-wp.info/wp-content/uploads/2018/05/cropped-icon-256x256-1-32x32.png</url>
	<title>カウントダウン &#8211; WordPress Memo</title>
	<link>https://blog.riverforest-wp.info</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>セッションタイムアウトによる強制ログアウトまでをカウントダウンするプラグイン</title>
		<link>https://blog.riverforest-wp.info/countdown-to-force-logout/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Thu, 11 Aug 2022 22:34:51 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[カウントダウン]]></category>
		<category><![CDATA[ログアウト]]></category>
		<category><![CDATA[通知]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2984</guid>

					<description><![CDATA[はじめに WordPress で会員サイトなどを運営していると、ユーザーから「強制ログアウトされた。どうなっているのか？」などと、ごくたまに問い合わせがある事があると思います。この場合は、ほぼセッションタイムアウトによる [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>WordPress で会員サイトなどを運営していると、ユーザーから「強制ログアウトされた。どうなっているのか？」などと、ごくたまに問い合わせがある事があると思います。この場合は、ほぼセッションタイムアウトによるものがほとんどだと思います。</p>



<p>WordPress では、ログイン期間が、デフォルトで４８時間、ログイン画面の「ログイン状態を保存する」にチェックを入れてログインすると１４日間になっており、その期間を過ぎるとセッションタイムアウトにより強制ログアウトされます。この期間を’<code class="language-php language-html">auth_cookie_expiration</code>’というフィルターフックを用いて変更する事ができますが、セキュリティの観点から余り長いログイン期間は好ましくなく、デフォルト、もしくは短くして運用しているサイトがほとんどだと思います。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<style>
.simpleblogcard_img_block886bd050d591bf1f2139816b56ff6cad {
  float: right;
  padding: 10px;
}
.simpleblogcard_border886bd050d591bf1f2139816b56ff6cad {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title886bd050d591bf1f2139816b56ff6cad {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description886bd050d591bf1f2139816b56ff6cad {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/hooks/auth_cookie_expiration/>
				<figure class="simpleblogcard_img_block886bd050d591bf1f2139816b56ff6cad">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="auth_cookie_expiration – Hook | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border886bd050d591bf1f2139816b56ff6cad">
			developer.wordpress.org			<div class="simpleblogcard_title886bd050d591bf1f2139816b56ff6cad">
				auth_cookie_expiration – Hook | Developer.WordPress.org			</div>
							<div class="simpleblogcard_description886bd050d591bf1f2139816b56ff6cad">
					Filters the duration of the authentication cookie expiration period.				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>
</div>
</div>



<p>ユーザーにとっては、何の周知もなくいきなり強制ログアウトされるのは気分の良いものではありません。そこで、管理バーに強制ログアウト（セッションタイムアウト）までの期間を表示し、強制ログアウト（セッションタイムアウト）の１０分前から、さらに目立つモーダル表示を出すプラグインを作成しました。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/countdown-to-force-logout/assets/icon-256x256.png?rev=2769543" alt="Countdown to force logout のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/countdown-to-force-logout/" class="pluginstatsview-astyle">Countdown to force logout</a></div>
			<div class="pluginstatsview-small">強制ログアウトまでのカウントダウンをログインしている各ユーザーに管理バーへ通知します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/countdown-to-force-logout/#reviews" title="0.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(0)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">6,135ダウンロード</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/countdown-to-force-logout.1.10.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2022-08-11</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>



<h3 class="wp-block-heading">使い方・仕様</h3>



<p>プラグインをインストールして有効化するだけで表示が出ます。管理画面はありません。</p>



<ul class="wp-block-list"><li>60 秒間隔で管理バーにカウントダウンを通知します。</li><li>カウントダウンが 600 秒以下になると、モーダルウィンドウに通知されます。この秒数はフィルターフックで変更可能です。</li></ul>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc634c00263&quot;}" data-wp-interactive="core/image" data-wp-key="69cc634c00263" class="wp-block-image size-large wp-lightbox-container"><img fetchpriority="high" loading="eager" decoding="async" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" width="1221" height="714" data-id="2995" src="https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-1.png" alt="" class="wp-image-2995" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-1.png 1221w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-1-300x175.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-1-1024x599.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-1-768x449.png 768w" sizes="(max-width: 1221px) 100vw, 1221px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc634c0090a&quot;}" data-wp-interactive="core/image" data-wp-key="69cc634c0090a" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" width="1216" height="710" data-id="2996" src="https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-2.png" alt="" class="wp-image-2996" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-2.png 1216w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-2-300x175.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-2-1024x598.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20220812/screenshot-2-768x448.png 768w" sizes="auto, (max-width: 1216px) 100vw, 1216px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>
</figure>



<h3 class="wp-block-heading">フィルターフック</h3>



<p>モーダルウィンドウに通知される秒数をカスタマイズできます。</p>



<pre class="prism line-numbers"><code class="language-php language-html">/** ==================================================
 * Filter for countdown limit second for modal window view.
 *
 */
add_filter( 'countdown_to_force_logout_limit_sec', function(){ return 300; }, 10, 1 );</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WooCommerce のタイムセール商品にカウントダウンを表示するプラグイン</title>
		<link>https://blog.riverforest-wp.info/countdown-woocommerce-sale/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Thu, 09 Aug 2018 14:24:27 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[カウントダウン]]></category>
		<category><![CDATA[タイムセール]]></category>
		<category><![CDATA[プラグイン]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=422</guid>

					<description><![CDATA[はじめに WooCommerce のセールの表示は、商品の所に、Sale と表示が出て、定価に取り消し線が引かれ、セール価格が表示されるだけです。タイムセールの場合カウントダウンが効果的なので、価格表示の下に割引率、カウ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">はじめに</h2>



<p>WooCommerce のセールの表示は、商品の所に、Sale と表示が出て、定価に取り消し線が引かれ、セール価格が表示されるだけです。タイムセールの場合カウントダウンが効果的なので、価格表示の下に割引率、カウントダウンを表示するようにしました。他に、割引額、セール最終日も設定できます。また、商品ページでの複数商品での同時カウントダウン表示も可能です。</p>



<h2 class="wp-block-heading">使用方法</h2>



<p>チュートリアル動画を用意しました。プラグインページをご覧ください。</p>



<h2 class="wp-block-heading">プラグイン</h2>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/countdown-woocommerce-sale/assets/icon-256x256.png?rev=1919611" alt="Countdown WooCommerce Sale のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/countdown-woocommerce-sale/" class="pluginstatsview-astyle">Countdown WooCommerce Sale</a></div>
			<div class="pluginstatsview-small">Woocommerce のタイムセール商品に、カウントダウンが表示されます。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/countdown-woocommerce-sale/#reviews" title="0.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(0)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">6,950ダウンロード</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/countdown-woocommerce-sale.1.18.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2018-08-03</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
