The WordPress platform is poster-child in the open-source community for proving accessibility to commercial-grade consumer-facing software at no cost. While it powers nearly 25% of the web and has been downloaded hundreds of millions of times, those that are responsible for the project are largely ignored for their work. The everyday user plays with WordPress blissfully unaware of the core group of volunteers and developers that tirelessly slave away on continued core improvements. If you're in the business profiting from WordPress in any way, recognizing those that make you business model possible isn't entirely unreasonable.
WordPress makes a list of the core contributors available in a JSON file that we've printed on our reference page. While I'm not entirely sure there's anything you can do for these people directly, recognizing their efforts via a page dedicated to displaying contributor credits is a start.
The Result
The shortcode (and PHP) function on this page will render the same list we've published on this page (it's too long to show here). The shortcode used to display the entire list was [wpcredits]
. We can publish selective components of the list by way of shortcode attributes. For example, to print just the external library credits, use [wpcredits leaders="0" devs="0" contributors="0" rockstars="0" props="0" libraries="1"]
. The result:
Libraries
WordPress Shortcode
Copy and paste the WordPress function into your theme's functions.php
file or, if you sensibly have one installed, your custom functions plugin. You may optionally download and install our plugin from the bottom of of the page.
If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.
Shortcode Attributes
The following attributes alter the presentation of the credit list. For all options use 0 for false and 1 for true.
version
locale
leaders, devs, contributors, rockstars, props & libraries
devs="0"
, props="0"
etc.gravatar
15
(pixels).align
align
attribute applies to positioning of the Gravatar image.cache_temp
cache_temp
time.cache
cache
will save your result to a transient. Since the data rarely changes, we cache for 28 days.PHP Function
Used outside of WordPress the following function may be used. Usage requires Simple Cache.
The arguments are passed to the function in an array.
Download
Description: Displays credits for WordPress developers, contributors, and libraries with shortcode.
Download • Version 0.1, 2.4K, zip, Category: WordPress Plugins (General)
WordPress Shortcodes, (1.6K) PHP Code & Snippets, (1.6K)