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 complete 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: 3.4 or higher
Compatible up to: 3.8.15
Last Updated: 3 years ago
Active Installs: 70+
Got something to say? Need help?