[wga] Shortcode to obtain resources from official GitHub API v3.
NOTE: WPGitHubAPI plugin uses transients to cache the counts for 24 * HOUR_IN_SECONDS.
[wga]shortcode accepts following parametersu='api_url'whereapi_urlis the part of API afterhttps://api.github.com/E.g.users/ahmadawaiswill return my profile data.d='data'wheredatais the object's data you want to retrieve E.g.followerswill return the number of followers for my profile.- GitHub Readme Parser with
r='y'attribute in the shortcode. - Remove
h1withh1=y|nattribute in the shortcode. - Convert
h1toh2withh2=y|nattribute in the shortcode.
- My GitHub Followers Count:
[wga u='users/ahmadawais' d='followers'] - For more examples read GitHub API Documentation or visit GitHub API.
- WGA shortcode
- WGA Documentation
You can use GitHub Updater to receive updates for this plugin.
- IMPROVE: Gracefully show the GitHub repo link on API rate limiting.
- IMPROVE: PHP 7 compat β thanks to @tfirdaus for PR #1.
- FIX: PHP CS Issues like weird spacing and tabs.
- NEW: Transients below 172 characters.
- NEW: Should there be
h1withh1=y|n. - NEW: Should convert
h1toh2withh2=y|n.
- NEW: Basic PHPUnit tests.
- NEW: GitHub Readme Parser with
r='y'attribute in the shortcode.
- WP.org Repo submission.
- NEW:
README.txt.
- NEW: Custom transients names with API_URL and Data.
- NEW: Regex Remove
/in the beginning or at the end.
- FIX: Custom data related transients.
- First beta version.
Licensed under GNU GPL v2.0. Copyright (C) 2016 Ahmad Awais.