<?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%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E6%95%B0/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.riverforest-wp.info</link>
	<description>WordPress に関する覚え書き</description>
	<lastBuildDate>Fri, 09 May 2025 12:48:52 +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>WooCommerce でダウンロード商品のダウンロード数をカウントするプラグイン</title>
		<link>https://blog.riverforest-wp.info/download-count-woo/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Tue, 20 Oct 2020 22:50:09 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[ダウンロード数]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2500</guid>

					<description><![CDATA[はじめに WooCommerce で顧客がダウンロードしたのを確認するのに注文一覧管理画面からわかるようにしたかったところから作成しました。ついでに、商品一覧管理画面と商品ページにも表示できるようにしました。 スクリーン [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p><strong>WooCommerce</strong> で顧客がダウンロードしたのを確認するのに注文一覧管理画面からわかるようにしたかったところから作成しました。ついでに、商品一覧管理画面と商品ページにも表示できるようにしました。</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">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504" alt="WooCommerce のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://woocommerce.com/" class="pluginstatsview-astyle">WooCommerce</a></div>
			<div class="pluginstatsview-small">オンラインストアを数日で公開し、長期的な成長を続けるために必要なものがすべて揃っています。 はじめての販売から数百万ドルの収益ま&#8230;</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/automattic/">Automattic</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://woocommerce.com/#reviews" title="4.5(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(4754)</span>
		<span class="pluginstatsview-card-right">最終更新: 3週間 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">700万以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 6.9.4</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/woocommerce.10.6.1.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2011-09-27</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/download-count-for-woocommerce/assets/icon-256x256.png?rev=2403598" alt="Download Count for WooCommerce のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/download-count-for-woocommerce/" class="pluginstatsview-astyle">Download Count for WooCommerce</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/download-count-for-woocommerce/#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">20以上サイトで有効化中</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/download-count-for-woocommerce.1.21.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-10-20</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>
</div>
</div>



<h3 class="wp-block-heading">スクリーンショット</h3>



<style type="text/css">@keyframes slidy2510 { 0%{ left: -0%; } 26.66666666666667%{ left: -0%; } 33.333333333333336%{ left: -100%; } 53.33333333333334%{ left: -100%; } 66.66666666666667%{ left: -200%; } 80%{ left: -200%; } 100%{ left: -300%; } 106.66666666666669%{ left: -300%; } }div#slider2510 { overflow: hidden; margin: 0 auto; padding: 0; }div#slider2510 figure img { width: 25%;hight:auto; float: left; }div#slider2510 figure { position: relative; width: 400%; margin: 0; left: 0; text-align: left; font-size: 0; animation: 20s slidy2510 infinite; }</style><div id="slider2510"><figure><img decoding="async" src="https://blog.riverforest-wp.info/wp-content/uploads/20201020/screenshot-1.png"><img decoding="async" src="https://blog.riverforest-wp.info/wp-content/uploads/20201020/screenshot-2.png"><img decoding="async" src="https://blog.riverforest-wp.info/wp-content/uploads/20201020/screenshot-3.png"><img decoding="async" src="https://blog.riverforest-wp.info/wp-content/uploads/20201020/screenshot-4.png"></figure></div>



<h3 class="wp-block-heading">仕様</h3>



<p><strong>= 商品画面 =</strong></p>



<ul class="wp-block-list">
<li>ダウンロード数は商品価格の下に表示されます。</li>



<li>ダウンロード数は商品の合計ダウンロード数です。</li>
</ul>



<p><strong>= 商品の管理画面＝</strong></p>



<ul class="wp-block-list">
<li>ダウンロード数は、管理画面の「すべての商品」ページの「金額」欄に表示されます。</li>



<li>ダウンロード数は、ダウンロードされた商品の合計数です。</li>
</ul>



<p><strong>= 注文の管理画面＝</strong></p>



<ul class="wp-block-list">
<li>ダウンロード数は、管理画面の「ご注文」ページの「商品：ダウンロード」欄に表示されます。</li>



<li>お客様のメールアドレスで絞り込みます。</li>
</ul>



<p><strong>＝ フィルター =</strong></p>



<p>商品ダウンロード数の HTML のフィルターを提供します。</p>



<p><strong>＝ フィルターサンプル =</strong></p>



<ul class="wp-block-list">
<li>全商品の HTML を緑表示に変更するコードです。
<ul class="wp-block-list">
<li>全商品を表示させたくない場合は、null を返すと良いです。</li>
</ul>
</li>
</ul>



<pre class="prism line-numbers"><code class="language-php language-html">/** ==================================================
 * Download Count for WooCommerce
 *
 * download_count_woo
 * @param string $html  html.
 * @param int    $count  count.
 */
function download_countproduct( $html, $count ) {

	if ( ! is_admin() ) {
		$html = '&lt;br /&gt;&lt;span style="color: green;"&gt;' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '&lt;/span&gt;';
	}
	return $html;

}
add_filter( 'download_count_woo', 'download_countproduct', 10, 2 );</code></pre>



<ul class="wp-block-list">
<li>商品 ID 331 の HTML を赤表示に変更するコードです。
<ul class="wp-block-list">
<li>表示させたくない商品の場合は、null を返すと良いです。</li>
</ul>
</li>
</ul>



<pre class="prism line-numbers"><code class="language-php language-html">/** ==================================================
 * Download Count for WooCommerce
 *
 * download_count_woo_
 * @param string $html  html.
 * @param int $count  count.
 */
function download_countproduct_331( $html, $count ) {

	if ( ! is_admin() ) {
		$html = '&lt;br /&gt;&lt;span style="color: red;"&gt;' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '&lt;/span&gt;';
	}
	return $html;

}
add_filter( 'download_count_woo_331', 'download_countproduct_331', 10, 2 );</code></pre>



<h3 class="wp-block-heading">管理画面</h3>



<p>管理画面から設定できる「管理画面のみに表示」というオプションがあります。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
