內容簡介
此外掛在文章、頁面和文字小工具中加入了短碼 [wpapi]。
極佳!
此外掛讓您能夠取得 WordPress.org 上有關主題和外掛的所有資訊。
簡單易用
您可以使用一組短碼呈現 WordPress.org 上特定外掛或主題的內容,以下是使用方法:
[wpapi type="plugin" slug="freelancer"][/wpapi]
使用 type 加上 plugin 或 theme。使用 slug 加上 WordPress.org 中的 slug 名稱。
在主要短碼中,您可以使用以下子短碼:
[wpapi_slug] 顯示 slug,可用於自訂 URL,例如 `<a href="https://wordpress.org/plugins/[wpapi_slug]">Wordpress Plugin Site</a>`。 [wpapi_name] 顯示外掛或主題的名稱。 [wpapi_author] 顯示外掛或主題檔案中使用的作者連結。 [wpapi_contributors] 顯示在 readme 中使用的貢獻者清單。 [wpapi_version] 顯示外掛或主題的版本。 [wpapi_added] 顯示將外掛或主題新增至 WordPress.org 儲存庫的日期。 [wpapi_last_updated] 顯示外掛或主題的更新日期。 [wpapi_author_profile] 顯示在 WordPress.org 上的個人檔案 URI。 [wpapi_homepage] 顯示在外掛或主題中使用的首頁連結。 [wpapi_requires] 顯示外掛或主題所需的 WordPress 版本。 [wpapi_tested] 顯示測試此外掛或主題的 WordPress 版本。 [wpapi_downloaded] 顯示下載次數。 [wpapi_rating] 顯示評分。 [wpapi_num_ratings] 顯示投票數。 [wpapi_download_link] 顯示下載 URI。 [wpapi_donate_link] 顯示在外掛或主題中使用的捐款 URI。 [wpapi_description] 顯示說明。 [wpapi_installation] 顯示安裝方式。 [wpapi_screenshots] 顯示在 WordPress.org 儲存庫中使用的截圖列表。 [wpapi_changelog] 顯示在 readme.txt 中使用的變更記錄。 [wpapi_faq] 顯示在 readme.txt 中使用的常見問題集。 [wpapi_other_notes] 顯示在 readme.txt 中使用的其他資訊。
所有子短碼皆啟用條件判斷
所有子短碼都可以使用條件短碼來檢查欄位是否存在,使用方式如下: [wpapi_if_{field}][/wpapi_if_{field}]
以版本為例:[wpapi_if_version]Version: [wpapi_version][/wpapi_if_version]
外掛標籤
開發者團隊
原文外掛簡介
Adds the Shortcode [wpapi] in posts, pages and even in text widgets.
Fantastic !
With this plugin you will have access to all the information on WordPress.org for both themes to the plugins.
Simple and easy to use
You can use a set of shortcodes to make your special publication of a plugin or theme present on WordPress.org, here’s how it works:
[wpapi type="plugin" slug="freelancer"][/wpapi]
Use type with plugin or theme. Use slug with the wordpress.org slug name.
Inside the main shortcode you can use this sub shortcodes:
[wpapi_slug] Show the slug, using this to customize urls example `WordPress Plugin Site`. [wpapi_name] Show the name of plugin/theme. [wpapi_author] Show the author link used into plugin/theme file. [wpapi_contributors] Show the contributors list used into readme. [wpapi_version] Show the version of plugin/theme. [wpapi_added] Show the date when the plugin/theme added to WordPress.org repository. [wpapi_last_updated] Show the date when the plugin/theme is updated. [wpapi_author_profile] Show the profile uri on WordPress.org. [wpapi_homepage] Show the homepage link used into plugin/theme. [wpapi_requires] Show the version of WordPress need to working to plugin/theme. [wpapi_tested] Show the version of WordPress tested of the plugin/theme. [wpapi_downloaded] Show the number of downloads. [wpapi_rating] Show the rating. [wpapi_num_ratings] Show the number of votes. [wpapi_download_link] Show the download uri. [wpapi_donate_link] Show the donate uri used into plugin/theme. [wpapi_description] Show the description. [wpapi_installation] Show the installation. [wpapi_screenshots] Show the list of screenshots used into WordPress.org repository. [wpapi_changelog] Show the changelog used into readme.txt. [wpapi_faq] Show the faq used into readme.txt. [wpapi_other_notes] Show other notes used into readme.txt.
If condition enabled for all sub shortcodes
All sub shortcodes can used shortcode to check if the field is present or not. Use istead: [wpapi_if_{field}][/wpapi_if_{field}]
Example for version: [wpapi_if_version]Version: [wpapi_version][/wpapi_if_version]
