The bad news WP doesn’t track this information persistently. It only keeps the technical representation of active plugins to load them. The rest is only looked up in specific contexts (such as plugin management admin panel), because it’s relatively heavy on resources.
The good news is that you can certainly rebuild this functionality in arbitrary program. The canonical version of WP plugin is contained in its File Header in a form of PHP comment. Unfortunately it’s not too machine-friendly format.
You can have your script scan for headers, keeping in mind several quirks:
- Version isn’t mandatory and might be missing altogether.
- Plugins folder might or might not be in default location (it’s customizable).
- Plugins might or might not be in a subfolder (they can be directly in plugins folder).
- There might be multiple plugins in a single subfolder.
Related Posts:
- Beta Versioning of Plugins
- What are WordPress installation percentages by version?
- WordPress plugin compatibility explaination when wordpress releases its new version (theoretical)
- WordPress plugin not automatic update
- How to enable suggested edits?
- How to change a user’s password programatically
- Cannot install plugins even though www-data has write permissions
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- How to call a plugin function from front end form
- Get URL of a specific file
- Building a plugin that doesn’t break when deactivated
- translation does not work with text_domain
- Get subcategories with JSON API plugin
- Custom url structure for custom template
- WooCommerce plugin appearance and look [closed]
- adding a text message beside the comment submit button
- If I delete plugins via FTP are settings kept in DB?
- Many plugins making WordPress run slow by design?
- Average Account Age
- Dont’ charge customer until product ships – woocommerce [closed]
- Absolute Image URL in srcset is appended to the upload dir
- JS Support Ticket – Auto create WP account
- how to open page, defined in plugin, from dashboad widget
- Change upload folder for a CPT
- Is there an npm library that uses best practices to scaffold a wordpress plugin that is build with React?
- Using meta_query to get date type values from post_meta table WordPress
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Using plugin functions/methods within templates
- How to retain table data in wordpress phpunit tests
- accessing parent variables in child construct without executing action in parent
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- Setup wp_schedule_event within a custom plugin
- How to over-ride a file in a plugin? [closed]
- execute function after one completed
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- WHy custom plugin slows down the loading of the pages?
- How Can I Safely Remove WP-Super Cache without messing my site up? [closed]
- Display Plugin Panels Outside of Admin Areas
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- Super slow plugin page (lots of error 500)
- Looking for Gallery Plugin [closed]
- Notice: Undefined index: mtral_field_subscriber
- Delete free version plugin will also delete premium plugin
- URL rewrite with external JSON query
- How to delete a theme using AJAX
- Adding a responsive grid onto a page (without using a Bootstrap theme) [closed]
- Class or function wrapper for plugin code
- Licensing a Plugin [closed]
- Add a function call after content automatically?
- Var_dump ACF “API”
- Equivalent of admin.php for public pages
- Detect plugin/theme installation (via upload)
- Engadget Like Featured Breaking Plugin
- sliding/fading header plugin or approach suggestion
- Google Analytics event tracking code being stripped out of links in Author box – WordPress site
- All In One SEO Plugin – Category INDEX
- how can we migrate wordpress 5.9 website from aws ec2 to new installed wp 5.9 oci compute
- Import Recent Posts Only and Ignore old ones if exist
- Security of a WordPress Plugin
- @wordpress/scripts advanced usage
- wp_post not working, keeps redirecting to posts page
- How to display ACF coustom field from category on author.php
- How to add Mobile field in Registration form using Theme my login Plugin
- Replace only the first CSS class
- prevent anonymous access to WordPress site (non-admin site)
- make p tag collapsed after 3 rows
- WPBakery Page Builder Shortcode Showing On Front Page For Post
- Student access credentials
- How to direct wordpress traffic to specific page
- Scroll to ID broken in main menu
- Comment restrictions Wodpress
- Generate and send ICS file through WordPress
- Gutenberg editor in WordPress 5.0.3 /wp-json/wp/v2/pages/4713/autosaves?_locale=user 500 (Internal Server Error)
- WP Plugin permissions – create new files
- How to capture customer’s credit card details via PayPal on my checkout page?
- Add code to page template on page built with Visual Composer
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- .htaccess file doesn’t work, with hundred tries
- plugin translation is not working
- ACF Repeater Field Question [closed]
- A more elegant way to handle notices/warnings
- To set a post is new/old in vertical scrolling
- ACF repeater field
- How can i see/log all requests coming from a registration form (not from the UI)?
- How to remove ‘View Details’ page & updates from third-party plugin?
- appointment plugin doesn’t display all appointments
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- Get the url of attachments from the post?
- Doing action based on input from options menu
- WordPress User Frontend Editing Custom Fields
- W3 Total Cache and IIS7 not doing much [closed]
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- How can I modify the colors of my theme for a single section of my site? [closed]
- What are the downsides of using bootstrap in plugin development?
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- Function mb_strlen Fail [closed]
- Images get uploaded itself from the computer
- getPost() method and Pagination
- How to create different woocommerce single_product.php pages for each product? [closed]
- ShipHub for WordPress