跳到内容

EDD Purchase Gravatars

v1.0.5

Andrew Munro / AffiliateWP · 2013年10月14日 上架

Displays Gravatars of customers who have purchased your product

正在使用
10+
评分
5.0 / 5
累计下载
7,756
最近更新
2021年9月21日
1 条评价需要 WordPress 4.2+已测试到 5.8.20

截图

Using the [edd_purchase_gravatars] shortcode
Using the [edd_purchase_gravatars] shortcode
Using the widget in a theme's sidebar
Using the widget in a theme's sidebar
The settings screen in Easy Digital Download's extension tab
The settings screen in Easy Digital Download's extension tab
The widget
The widget

This plugin requires Easy Digital Downloads. It outputs gravatars of all the customers who have purchased your product.

It works by using the customer’s email that they used to purchase your product, and checking it against Gravatar.com. Only unique email addresses are used, so if a customer purchases your product more than once, it will only show their Gravatar once.

To show the Gravatars of customers who have purchased your product, use the [edd_purchase_gravatars] shortcode, or drag the provided widget into the sidebar of your single download page. You can also show the gravatars of a particular product anywhere on your website using the template tag or shortcode, by passing in the download’s ID.

Features

  1. Set a heading to display above the Gravatars.
  2. Set the size of each Gravatar (512px maximum)
  3. Set the minimum number of unique purchases a download must have before the Gravatars are shown. Leave blank for no minimum.
  4. Set the maximum number of gravatars to show. Leave blank for no limit.
  5. Only show customers with a Gravatar account
  6. Randomize the Gravatars

Shortcode usage

To show the purchase gravatars on a single download, add this shortcode into the WP editor:

[edd_purchase_gravatars]

To show the purchase gravatars of a particular download on another page or download, add the id parameter. This example will show the download with an ID of 942.

[edd_purchase_gravatars id="942"]

To show the purchase gravatars with a custom title, use the title parameter. This will override the heading in the main plugin options

[edd_purchase_gravatars title="This is my custom title"]

Template Tag usage

This example will show the purchase gravatars of whichever single download it is placed on.

$gravatars = new EDD_Purchase_Gravatars();
echo $gravatars->gravatars( get_the_ID() );

If you’d like to show purchase gravatars of a specific download from somewhere else on your site, pass in the ID of the download like so:

$gravatars = new EDD_Purchase_Gravatars();
echo $gravatars->gravatars( '942' );

To show a custom title, pass in your title as the 2nd parameter

$gravatars = new EDD_Purchase_Gravatars();
echo $gravatars->gravatars( get_the_ID(), 'This is my custom title' );

Widget usage

Drag the widget into your sidebar. If the widget is shown on a single download page, and that download has purchases, the purchase gravatars will be shown.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums