Description
Automatically add a download link to the latest Github repo release zips with
a shortcode [latest_github_release user=”github” repo=”hub”]
Enkozessa
Tekka shortcode [latest_github_release user="github" repo="hub"]
ku kiwandiko oba widget olumala oterekke ekiwandikko okulaba nga kodi wekola.
ebyokulondamu
Osobola okwongera ko okusunsula mungeri shortcode gyekola mu
- Elinya lye pessa =
[latest_github_release name="Elinya ly'oyagala"]
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.
Yabankko okwongera ko ebirungi/werezza ebitakola/werezza ensonga
If you have any feedback, just write an issue. Or fork the code and submit a PR on Github.
Screenshots
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Latest Github Release” is open source software. The following people have contributed to this plugin.
Contributors“Latest Github Release” has been translated into 2 locales. Thank you to the translators for their contributions.
Translate “Latest Github Release” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
** 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 **
– Okuterezza ebitakola mu Caching.
– Okuterezza ebiwandikko.
– Okuterezza mu emitendera gya kodi.
** 1.1.0 **
– Okuterezza mu kodi.
** 1.0.0 **
– Enkola eyasoka