Provides a simple way of displaying up-to-date information about specific WordPress Plugin Directory hosted plugins in your blog posts and pages.
This plugin is only going to be of use to you if:
The majority of the available shortcodes can be seen from the post writing screen. Just click the '[show]' link in the 'Plugin Info' box.
Please see http://lud.icro.us/wordpress-plugin-info/ for a definitive list of all the available shortcodes. There are a few additional (less useful) shortcodes listed there.
Shortcodes which display a formatted hyperlink can have their default link text overridden by adding a 'text' parameter. For example:
[plugin homepage text='Homepage'] will display a link to the plugin homepage with the link text 'Homepage'.
Yes! You can use the
plugin_info() function anywhere in your template. The function takes two parameters, the slug of your plugin and the attribute you'd like to display. The following example will display the last updated date for my User Switching plugin:
<?php plugin_info( 'user-switching', 'updated' ); ?>
You can also get the info rather than printing it out using the
<?php $updated = get_plugin_info( 'user-switching', 'updated' ); ?>
The plugin information is collected from wp.org each time you save your post or page. It is updated hourly using WordPress' cron system and uses the Plugin API available in WordPress 2.7 or later. The plugin data is stored as an associative array in a custom field called 'plugin-info', and the plugin slug you enter is saved as a custom field called 'plugin'. For supergeeks, this means you can also access the plugin data using
get_post_meta(), but I'll let you figure that out for yourself.
Requires: 2.8 or higher
Compatible up to: 3.3.2
Last Updated: 2013-4-7
1 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?