[WordPress] 外掛分享: WP Developer Info

首頁外掛目錄 › WP Developer Info
全新外掛
安裝啟用
尚無評分
3385 天前
最後更新
問題解決
WordPress 3.8.0+ v1.0.4 上架:2013-01-26

內容簡介

你為 WP.org 社群開發了許多外掛和主題,你不覺得你應該能夠展示你的辛勤工作嗎?我覺得是,所以我做了這個外掛,將會請求 WP.org 的外掛和主題 API 並動態顯示你的所有辛勤工作。不像一些類似的外掛,這裡沒有任何網頁爬蟲 (呃!)。

使用起來非常簡單。最簡單的用法是下列 shortcode:[dev-info author=< 作者 slug >]。
進階使用方式的說明如下

[dev-info] 參數

author:作者 slug。這是您 WP.org 個人資料的結尾處的相同值 (例如: https://profiles.wordpress.org/danrossiter/)。
slug:要檢索的外掛或主題 slug (如果您只想顯示有關單個外掛的資訊,這很有用)。
api:可選。這表示是查詢插件 API、主題 API 還是兩者 (“plugins”, “themes”, “plugins,themes”)。
預設是兩者,但如果您只需要一個,則應明確設置此值以避免從您的伺服器進行兩次 HTTP 呼叫。
orderby:排序方式 (例如:name, slug, downloaded)。任何帶有相關 shortcode 的欄位都可以排列,
但有些欄位例如 stars,按照評分順序排序可能沒有多少意義。
order:升冪或降冪排序 (ASC 或 DESC)。

[dev-info] shortcode 支援多個巢狀 shortcode,可完全自定義所生成的輸出。以下是其中一個範例 (實際上是預設輸出格式):

[dev-info-icon]

[dev-info-name]

[dev-info-stars] ([dev-info-num-ratings])

[dev-info-short-description]

[dev-info-name]:外掛或主題的名稱。
[dev-info-slug]:識別外掛或主題的 slug。
[dev-info-description]:完整的描述。
[dev-info-short-description]:短描述。對於主題來說,這是說明的前 150 個字元。
[dev-info-version]:外掛或主題的當前版本。
[dev-info-author]:作者的名稱。
[dev-info-author-profile]:作者 WP.org 個人資料的 URL。
[dev-info-active-installs]:外掛或主題的安裝數量。
[dev-info-rating]:外掛或主題的百分比評分。
[dev-info-num-ratings]:已評分該外掛或主題的用戶數。
[dev-info-downloaded]:下載該外掛或主題的數量。
[dev-info-downloadlink]:外掛或主題的下載連結。
[dev-info-last-updated]:更新外掛或主題的最後時間。
[dev-info-homepage]:外掛或主題的首頁。
[dev-info-icon]:包含外掛圖示和主題第一個截圖的 IMG 標籤。
[dev-info-stars]:以星號表示的評分 (與 WP.org 個人資料上顯示的相同)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Developer Info」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

You worked hard developing your plugins & themes for the WP.org community. Don’t you think you should be able
to show off your hard work? I did, so I threw together this plugin which will poll the WP.org plugin &
theme APIs and dynamically display all of your hard work. Unlike some similar plugins, there is no page scraping
happening here (eww!).
Usage could not be more easy. The simplest usage is the following shortcode: [dev-info author=].
Advanced usage is documented below.
[dev-info] Arguments

author: The author slug. This is the same value at the end of your WP.org profile (eg: https://profiles.wordpress.org/danrossiter/).
slug: The plugin or theme slug to be retrieved (useful if you just want to display info about a single plugin).
api: Optional. This indicates whether to query the plugins API, the themes API, or both (“plugins”, “themes”, “plugins,themes”).
The default is both, but if you only want one then you should explicitly set this value to avoid making two HTTP
calls from your server.
orderby: Field to order by (eg: name, slug, downloaded). Any field with an associated shortcode may be ordered against,
though some such as stars might not make a whole lot of sense to order by.
order: Ascending or descending sort (ASC or DESC).

The [dev-info] shortcode supports a number of nested shortcodes allowing complete customization of the output generated.
An example of this is the following (this is infact the default output format):
[dev-info-icon]
[dev-info-name]
[dev-info-stars] ([dev-info-num-ratings])
[dev-info-short-description]

[dev-info-name]: The name of the plugin/theme.
[dev-info-slug]: The slug identifying the plugin/theme.
[dev-info-description]: The full description.
[dev-info-short-description]: The short description. For themes this is the first 150 characters of the description.
[dev-info-version]: The current version of the plugin/theme.
[dev-info-author]: The name of the author.
[dev-info-author-profile]: The URL for the author’s WP.org profile.
[dev-info-active-installs]: The number of active installs for the plugin/theme.
[dev-info-rating]: Percent rating of the plugin/theme.
[dev-info-num-ratings]: The number of users that have rated the plugin/theme.
[dev-info-downloaded]: The number of downloads for the plugin/theme.
[dev-info-downloadlink]: The download link for the plugin/theme.
[dev-info-last-updated]: The last time the plugin/theme was updated.
[dev-info-homepage]: The homepage of the plugin/theme.
[dev-info-icon]: The IMG tag containing the icon for plugins and the first screenshot for themes.
[dev-info-stars]: The rating represented in stars (same as what is displayed on the WP.org profile).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon