Title: Latest Github Release
Author: laurencebahiirwa
Published: <strong>2019 年 4 月 20 日</strong>
Last modified: 2022 年 6 月 21 日

---

搜索插件

![](https://ps.w.org/latest-github-release/assets/banner-772x250.jpg?rev=2745823)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/latest-github-release/assets/icon-256x256.jpg?rev=2745823)

# Latest Github Release

 作者：[laurencebahiirwa](https://profiles.wordpress.org/laurencebahiirwa/)

[下载](https://downloads.wordpress.org/plugin/latest-github-release.2.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/latest-github-release/#description)
 * [评价](https://cn.wordpress.org/plugins/latest-github-release/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/latest-github-release/#developers)

 [支持](https://wordpress.org/support/plugin/latest-github-release/)

## 描述

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 <a>.
    $atts['class'] .= ' another-class';

    // Add <h2> around the tag.
    $html = (
        '<h2><a href="' . esc_attr( $zip_url ) . '"'
        . ' class="' . esc_attr( $atts['class'] ) . '">'
        . esc_html( $atts['name'] )
        . '</a></h2>'
    );

    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](https://github.com/bahiirwa/Latest-Github-Release).

## 屏幕截图

[[

[[

[[

[[

## 评价

此插件暂无评价。

## 贡献者及开发者

「Latest Github Release」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ laurencebahiirwa ](https://profiles.wordpress.org/laurencebahiirwa/)
 *   [ James Nylen ](https://profiles.wordpress.org/jnylen0/)

「Latest Github Release」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/latest-github-release/contributors)
为本插件所做的贡献。

[帮助将「Latest Github Release」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/latest-github-release)

### 对开发感兴趣吗?

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

## 更新日志

** 2.1.0 **
 – Test for WP 6.0 – Fix missing $zip_url in filter.

** 2.0.0 **
 – Updates the plugin to use static functions and to have code that 
is re-usable by other plugins.

** 1.2.0 **
 – Fix Caching errors. – Better docs. – Coding style/consistency fixes.

** 1.1.0 **
 – Code improvements.

** 1.0.0 **
 – Initial Release.

## 额外信息

 *  版本 **2.1.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/latest-github-release/)、
   [English (US)](https://wordpress.org/plugins/latest-github-release/) 和 [Luganda](https://lug.wordpress.org/plugins/latest-github-release/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/latest-github-release)
 * 标签
 * [Github](https://cn.wordpress.org/plugins/tags/github/)[latest](https://cn.wordpress.org/plugins/tags/latest/)
   [release](https://cn.wordpress.org/plugins/tags/release/)[zip](https://cn.wordpress.org/plugins/tags/zip/)
 *  [高级视图](https://cn.wordpress.org/plugins/latest-github-release/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/latest-github-release/reviews/#new-post)

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

## 贡献者

 *   [ laurencebahiirwa ](https://profiles.wordpress.org/laurencebahiirwa/)
 *   [ James Nylen ](https://profiles.wordpress.org/jnylen0/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/latest-github-release/)

## 捐助

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

 [ 捐助此插件 ](https://omukiguy.com/)