內容目錄
前言介紹
- 這款 WordPress 外掛「Latest Github Release」是 2019-04-19 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2022-06-21,距離現在已有 1048 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
zip | Github | latest | release |
內容簡介
此外掛會自動加入最新 Github 儲存庫發布的壓縮檔案下載鏈接,
使用簡碼 [latest_github_release user=”github” repo=”hub”]
使用說明
在想要加入的文章、頁面或小工具中加入簡碼[latest_github_release user="github" repo="hub"],並儲存即可開始使用。
選項
使用者可以通過一些自定義簡碼參數,例如:
按鈕名稱 = [latest_github_release name="Desired Name"]
使用latest_github_release_link過濾器鉤子
`
add_filter( ‘latest_github_release_link’, ‘gmlatest_github_release_link’, 10, 3 );
function gmlatest_github_release_link( $html, $atts, $zip_url ) {
// 為添加另一個類別。
$atts['class'] .= ' another-class';
// 在標記周圍添加<h2>.
$html = (
'
. ' class="' . esc_attr( $atts['class'] ) . '">'
. esc_html( $atts['name'] )
. '
');
return $html;
}
`
注意:
1. 名稱屬性的預設值為單詞"Download"。
1. 名稱與user和repo等其他屬性相結合使用。
貢獻/問題/反饋
如果您有反饋,請撰寫一個問題。您也可以分叉代碼,在 Github 上提交PR。
原文外掛簡介
Automatically add a download link to the latest Github repo release zips with
a shortcode [latest_github_release user=”github” repo=”hub”]
Usage
Add the shortcode [latest_github_release user="github" repo="hub"] to desired post/page/widget and save to have the code working.
options
One can add some customization to the shortcode such as
Name of the button = [latest_github_release name="Desired Name"]
Use latest_github_release_link filter Hook
`
add_filter( ‘latest_github_release_link’, ‘gmlatest_github_release_link’, 10, 3 );
function gmlatest_github_release_link( $html, $atts, $zip_url ) {
// Add another class to the .
$atts['class'] .= ' another-class';
// Add
around the tag.
$html = (
'
'
. esc_html( $atts['name'] )
. '
'
);
return $html;
}
`
Note:
1. Name attribute defaults to the word “Download”
1. Name is usedin combination with the other attribbutes user & repo.
Contribute/Issues/Feedback
If you have any feedback, just write an issue. Or fork the code and submit a PR on Github.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Latest Github Release」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2.0 | 2.0.0 | 2.1.0 | trunk |
延伸相關外掛(你可能也想知道)
Recent Posts 》「最新文章」插件會顯示您部落格的最新文章清單,輸出的結果可以進行多種自訂設定,如欲了解更多詳情,請參考這個網址。, 此插件需要最新版本的「文章外掛程...。
Recent Comments 》近期留言外掛可以顯示您部落格最新的留言,輸出可以根據許多方式自定義設計。, 此外掛需要最新版本的文章外掛庫: 立即下載。, 版本歷程, , 2.6.2.1, , 新增...。
Disqus Latest Comments Addon 》在頁面、文章或小工具中顯示您最新的 Disqus 評論。, 如何使用?, 步驟 1:註冊 API 金鑰, 為使用此外掛,您需要註冊 API 金鑰。, , 前往Disqus 應用程式網站...。
Stealth Update 》此外掛允許您選擇在不更新文章的 post_modified 時戳的情況下進行文章更新。, WordPress 維護一個名為 post_modified 的文章欄位,用於追蹤文章上一次編輯的...。
Get Post 》Get Post 是一個外掛,它新增了一個標籤,可讓您檢索並顯示最新的文章,這些文章由特定一組參數所識別。, 當此外掛啟用後,在任何文章或頁面中,都可以使用以...。
ETH Redirect to Latest Post 》啟用後,特定的別名(slug)將重新導向至網站上最近發佈的文章。預設別名為 latest,但可以在「永久連結」設定畫面更改。。
Latest YouTube Video 》輕鬆顯示最新的 YouTube 影片, 使用 [latest_youtube_video] 短代碼,你可以輕鬆地顯示任何 YouTube 頻道的最新影片,僅需要使用頻道 ID,並可選擇影片的寬度...。
Newstastic Post Slider 》已更新以修復新版本 PHP 的問題。這個小小的小工具可以以水平或垂直格式顯示所有或選定類別的文章,您可以選擇顯示一些選項並設定寬度、高度等等。這是第一個...。
Featured Podcast Widget 》這個小工具可以讓你使用 Blubrry PowerPress 外掛的預設播放器來顯示來自某個分類或精選播客的最新集數。, 小工具會顯示文章的特色圖片和摘要,還有一個從文...。
Latest Spotify Activity 》這個簡單的小工具可以在您的網站上顯示您在 Spotify 上的活動。使用 Spotify 內建的「Last.fm Scrobble」功能。, , 設置完成後,您在 Spotify 應用上播放的...。
WP-Forum Latest Posts 》WP-Forum Latest Posts 外掛可以驚奇地列出您的 WP-Forum 最新文章。您可以使用一些選項來自訂輸出和其它設定。, 查看外掛主頁以獲取更多詳細資訊, 開發者的 ...。
MM-Breaking News 》這個外掛讓你可以在你的文章中創建項目清單。你可以選擇多個列表,對於每個列表,你可以選擇要包含或排除的文章分類。, , 你可以按日期隨機排序你的文章,也...。
Latest Posts with Order Option 》「Latest Posts with Order Option」小工具可以幫助您在動態側邊欄中列出最新文章。, 您可以選擇顯示文章數量以及排序選項,包括 ID、條目、標題和日期。, 您...。
Cubecolour New Plugins 》安裝完成後,前往「外掛」→「新增」頁面, 除了預設的「精選」、「熱門」、「建議」和「最愛」標籤外,還會新增兩個標籤,分別為「新進」和「Beta 測試」,這...。
Sup Post Widget 》這是一個 WordPress 外掛,可透過簡碼在您的側邊欄或頁面/文章中顯示熱門文章、最新文章和隨機文章的數量及縮略圖。, , 特點:, – 隨機文章、熱門文章...。
. esc_html( $atts['name'] )
. '
);
`
Note:
1. Name attribute defaults to the word “Download”
1. Name is usedin combination with the other attribbutes user & repo.
Contribute/Issues/Feedback
If you have any feedback, just write an issue. Or fork the code and submit a PR on Github.



