=== My-Plugins ===
Contributors: matejn
Tags: plugins, plugin list, colophon, shortcode, block
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show visitors a neat table of the plugins your site uses. Add the My Plugins block or the [my_plugins] shortcode to any post or page.

== Description ==

My-Plugins shows a table of the plugins your site uses: the plugin name, a short description and the author. It is handy for a colophon, an "About this site" page or a blog post about your setup.

* **Block or shortcode.** Add the *My Plugins* block in the block editor, or write `[my_plugins]` anywhere shortcodes work.
* **Safe defaults.** Only active plugins are shown and version numbers are hidden, so the list does not help attackers look for outdated software. You can change both.
* **Choose what to show.** Row numbers, versions, descriptions, authors and links can each be turned on or off.
* **Hide plugins.** Tick the plugins that should never appear in the list.
* **Fits your theme.** The table takes its colours and fonts from your theme, works in light and dark designs and turns into a simple list on phones.
* **Fast.** Plugin information is cached and refreshed automatically when you install, update or delete a plugin.
* **Lightweight.** No JavaScript on the front end, no tracking, no external requests.

Posts written for older versions that contain `[my plugins]` keep working.

= Shortcode options =

The settings in *Settings → My Plugins* are the defaults. A single shortcode can change them:

`[my_plugins status="all" version="yes" description="no" author="no" number="no" links="no" hide="akismet,hello"]`

* `status` – `active` (default) or `all` to include inactive plugins.
* `number`, `version`, `description`, `author`, `links` – `yes` or `no`.
* `hide` – comma separated plugin folder names (for example `akismet`) or plugin files (`akismet/akismet.php`) to leave out.

= For developers =

* `my_plugins_list` filter – change the array of plugins before it is displayed.
* `my_plugins_html` filter – change the final HTML of the table.

== Installation ==

1. In your dashboard go to *Plugins → Add New*, search for "My-Plugins" and click *Install Now*, then *Activate*.
2. Optionally choose the defaults in *Settings → My Plugins*.
3. Add the *My Plugins* block or the `[my_plugins]` shortcode to a post or page.

== Frequently Asked Questions ==

= Why are version numbers hidden? =

Anyone can read the list. Exact version numbers make it easy for automated scanners to find sites that run a plugin with a known security problem. If you keep your plugins up to date and still want to show versions, turn them on in *Settings → My Plugins*, in the block settings or with `version="yes"`.

= Can I show inactive plugins too? =

Yes. Choose *All installed plugins* in the settings, in the block sidebar, or use `status="all"`. Inactive plugins are marked as such.

= I installed a plugin by FTP and it is not in the list. =

Open the *Plugins* screen in your dashboard once; this refreshes the cached list.

= Does it work with multisite? =

Yes. Network-activated plugins count as active on every site, and each site has its own settings.

= My old posts use [my plugins]. Do I need to change them? =

No, the old tag still works. For new posts use `[my_plugins]` or the block.

== Screenshots ==

1. The plugin table on a page (Twenty Twenty-Five theme).
2. All installed plugins with versions; inactive plugins are marked.
3. The My Plugins block and its settings in the block editor.
4. Settings → My Plugins with a live preview.
5. On phones the table turns into a simple list.

== Changelog ==

= 1.0.0 =
* Rewritten from scratch for current WordPress and PHP 7.4 – 8.4.
* New: *My Plugins* block with a live preview in the editor.
* New: `[my_plugins]` shortcode with options. The old `[my plugins]` tag still works.
* New: settings page with defaults, a list of plugins to hide and a preview.
* Security: all output is escaped, only http(s) links are used, only active plugins and no version numbers are shown by default.
* Plugin information is cached and refreshed when plugins change.
* Modern, accessible and responsive table that follows your theme's colours.
* The credit link below the table is now off unless you turn it on.
* The table is shown on every page, not only on single posts.
* Translation ready.

= 0.3 =
* WordPress 3.5.2 compatibility.

= 0.2 =
* First public version.

== Upgrade Notice ==

= 1.0.0 =
Complete rewrite with a block, a settings page and safer defaults: only active plugins are listed and version numbers are hidden unless you turn them on. Requires WordPress 6.3 and PHP 7.4.
