Allows you to insert a list of the WordPress plugins you are using into any post/page.
To get a list of the plugins that are installed and activated in your website, insert the following into any post or page:
You can customise the output specifying the
format argument and a number of pre-defined
tags. Here's an example:
[plugins_list format="#LinkedTitle# - #LinkedAuthor#</br>"]
The tags are:
If you want to list also the plug-ins you have installed but are not using, here's the formula:
The plugins list can be freely styled with css, just place any class or id attribute on the
format string, or on the elements surrounding it.
By default links will be followed but you can make these "nofollow" by simply adding the parameter of
nofollow=true. For example...
You can also specify the link target too. For example...
By default your plugin list will be cached for 1 hour, ensuring that performance is impacted as little as possible. Use the parameter
cache to change the number of hours. Set this to false to switch off caching.
This will cache for 24 hours. The following will switch the cache off...
A shortcode also exists to allow you to display the number of plugins that you have. Simply add
[plugins_number] to your post or page and it will return the number of active plugins.
To display the number of active AND inactive plugins use
As with the other shortcode results will be cached by default. To change the number of hours simply use the
cache parameter. Set it to
false to switch off caching. For example...
[plugins_number inactive=true cache=2]
If you wish to get the plugin data via a PHP function call (for example, to integrate it into your theme or add to your own plugin) then the following can be used..
<?php $list = get_plugins_list( $format, $show_inactive, $cache, $nofollow, $target ); ?>
None of the parameters are required and are as per the shortcode.
For getting the plugin numbers you can use the function...
<?php $number = get_plugin_number( $inactive, $cache ); ?>
Both function calls will return the appropriate text but not output it.
This WordPress plugin is licensed under the GPLv2 (or later).
Requires: 2.8 or higher
Compatible up to: 4.3.1
Last Updated: 2015-9-3
Active Installs: 300+
Got something to say? Need help?