Title: My Plugin Information &#8211; Fetch Data from WordPress.org
Author: Harish Chouhan
Published: <strong>2013 年 10 月 1 日</strong>
Last modified: 2025 年 7 月 27 日

---

搜索插件

![](https://ps.w.org/my-plugin-information/assets/banner-772x250.jpg?rev=3334049)

![](https://ps.w.org/my-plugin-information/assets/icon.svg?rev=3333870)

# My Plugin Information – Fetch Data from WordPress.org

 作者：[Harish Chouhan](https://profiles.wordpress.org/hchouhan/)

[下载](https://downloads.wordpress.org/plugin/my-plugin-information.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/my-plugin-information/#description)
 * [评价](https://cn.wordpress.org/plugins/my-plugin-information/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/my-plugin-information/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/my-plugin-information/#developers)

 [支持](https://wordpress.org/support/plugin/my-plugin-information/)

## 描述

Want to display information about any plugin hosted on WordPress.org?

This plugin lets you fetch and display details like version, active installs, ratings,
changelog, and more using a simple shortcode. Data is pulled from the WordPress.
org Plugin API, cached locally for performance, and automatically refreshed every
hour.

Perfect for plugin developers who want to show up-to-date info about their own plugins
on their site.

If you find this plugin useful, please consider [leaving a review](https://wordpress.org/support/plugin/my-plugin-information/reviews/?rate=5#new-post).
It helps others discover the plugin and supports continued development.

## 安装

 1. Go to **Plugins  Add New** in your WordPress dashboard.
 2. Search for “My Plugin Information” and click **Install Now**.
 3. Activate the plugin.
 4. Add a shortcode like `[mpi slug="plugin-slug" field="version"]` to any post, page,
    or widget area.
 5. Replace `plugin-slug` with the actual slug of the plugin you want to display information
    for.

For advanced usage examples and developer functions, see the [documentation on Themeist](https://themeist.com/plugins/wordpress/my-plugin-information/).

## 常见问题

### How to get support?

You can visit the [support forum](https://wordpress.org/support/plugin/my-plugin-information/)
and start a discussion if needed.

### Where can I report bugs or contribute?

You can report issues or contribute to the plugin on [GitHub](https://github.com/webtions/my-plugin-information).

### How often is the plugin data updated?

The plugin uses transients and fetches fresh data from WordPress.org every hour 
by default.

### Can I change how long the plugin data is cached?

Yes, there is a filter available to change the transient expiration time. Useful
if you want shorter or longer cache duration depending on your needs.

## 评价

此插件暂无评价。

## 贡献者及开发者

「My Plugin Information – Fetch Data from WordPress.org」是开源软件。 以下人员对
此插件做出了贡献。

贡献者

 *   [ Harish Chouhan ](https://profiles.wordpress.org/hchouhan/)
 *   [ Themeist Co ](https://profiles.wordpress.org/themeist/)

[帮助将「My Plugin Information – Fetch Data from WordPress.org」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/my-plugin-information)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/my-plugin-information/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/my-plugin-information/)，或通过[RSS](https://plugins.trac.wordpress.org/log/my-plugin-information/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/my-plugin-information/)。

## 更新日志

#### 1.0.0 – (27 July 2025)

 * Added `mpi_transient_expiration` filter to control cache duration
 * Added `subfield` shortcode attribute (thanks to [@vyskoczilova](https://profiles.wordpress.org/vyskoczilova/))
 * Added support for nested fields like `sections` and `ratings`
 * Added support for retrieving average star rating using the `ratings.average` 
   subfield, e.g. `[mpi slug="plugin-slug" field="ratings" subfield="average"]`
 * Changed transient naming format to `mpi-{slug}`
 * Renamed class file and class name to match plugin slug
 * Improved shortcode fallback handling
 * Fixed issues reported by PHPCS and PHPStan
 * Added inline comments throughout the plugin
 * Updated readme with usage and dev instructions

#### 0.3.0 – (24 June 2015)

 * Simplified shortcode logic by removing hardcoded if checks for specific fields
   like rating, version, etc. (thanks to [@dvankooten](https://profiles.wordpress.org/dvankooten/))
 * Now all fields are fetched dynamically from the API response
 * Code cleanup and formatting improvements

#### 0.2.0 – (30 April 2014)

 * Added 3 new fields (thanks to [Piet from SenlinOnline.com](https://profiles.wordpress.org/senlin/))

#### 0.1.1 – (07 October 2013)

 * Structural changes to improve logic

#### 0.1 – (30 September 2013)

 * Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**10 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/my-plugin-information/)
 * 标签
 * [directory](https://cn.wordpress.org/plugins/tags/directory/)[plugin data](https://cn.wordpress.org/plugins/tags/plugin-data/)
   [plugin info](https://cn.wordpress.org/plugins/tags/plugin-info/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [wordpress.org](https://cn.wordpress.org/plugins/tags/wordpress-org/)
 *  [高级视图](https://cn.wordpress.org/plugins/my-plugin-information/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/my-plugin-information/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/my-plugin-information/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/my-plugin-information/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/my-plugin-information/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/my-plugin-information/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/my-plugin-information/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/my-plugin-information/reviews/)

## 贡献者

 *   [ Harish Chouhan ](https://profiles.wordpress.org/hchouhan/)
 *   [ Themeist Co ](https://profiles.wordpress.org/themeist/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/my-plugin-information/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://themeist.com/plugins/wordpress/my-plugin-information/)