WP Developer Info
You worked hard developing your plugins & themes for the WP.org community. Don’t you think you should be able to show off your hard work? I did, so I threw together this plugin which will poll the WP.org plugin & theme APIs and dynamically display all of your hard work. Unlike some similar plugins,
You worked hard developing your plugins & themes for the WP.org community. Don’t you think you should be able to show off your hard work? I did, so I threw together this plugin which will poll the WP.org plugin & theme APIs and dynamically display all of your hard work. Unlike some similar plugins, there is no page scraping happening here (eww!).
Usage could not be more easy. The simplest usage is the following shortcode: [dev-info author=<author slug>] . Advanced usage is documented below.
[dev-info] Arguments
- author: The author slug. This is the same value at the end of your WP.org profile (eg: https://profiles.wordpress.org/ danrossiter / ).
- slug: The plugin or theme slug to be retrieved (useful if you just want to display info about a single plugin).
- api: Optional. This indicates whether to query the plugins API, the themes API, or both (“plugins”, “themes”, “plugins,themes”). The default is both, but if you only want one then you should explicitly set this value to avoid making two HTTP calls from your server.
- orderby: Field to order by (eg: name, slug, downloaded). Any field with an associated shortcode may be ordered against, though some such as stars might not make a whole lot of sense to order by.
- order: Ascending or descending sort (ASC or DESC).
The [dev-info] shortcode supports a number of nested shortcodes allowing complete customization of the output generated. An example of this is the following (this is infact the default output format):
[dev-info-icon]
[dev-info-name]
[dev-info-stars] ([dev-info-num-ratings])
[dev-info-short-description]
- [dev-info-name]: The name of the plugin/theme.
- [dev-info-slug]: The slug identifying the plugin/theme.
- [dev-info-description]: The full description.
- [dev-info-short-description]: The short description. For themes this is the first 150 characters of the description.
- [dev-info-version]: The current version of the plugin/theme.