Skip to content

Add PLUGIN_REPORT_IGNORE constant for internal/paid plugins#90

Open
apermo wants to merge 1 commit intoZodiac1978:developfrom
apermo:feature/ignore-list
Open

Add PLUGIN_REPORT_IGNORE constant for internal/paid plugins#90
apermo wants to merge 1 commit intoZodiac1978:developfrom
apermo:feature/ignore-list

Conversation

@apermo
Copy link
Copy Markdown
Contributor

@apermo apermo commented Apr 13, 2026

Summary

  • Adds PLUGIN_REPORT_IGNORE constant (array or comma-separated string) to skip wp.org API lookups
  • Ignored plugins show "Ignored (via config)" in the Repository column
  • No API call or SVN check is made for ignored slugs
  • Cached with the longer CACHE_LIFETIME_NOREPO (1 week)

Closes #14

Configuration

In wp-config.php:

define( 'PLUGIN_REPORT_IGNORE', 'yoast-seo-premium,my-internal-plugin' );

Test in WordPress Playground

Open in WordPress Playground

Pre-installed test plugins: Apermo Admin Bar (outdated), giWeather (closed/removed)

To test the ignore feature in Playground, add this to wp-config.php via the PHP console:

define( 'PLUGIN_REPORT_IGNORE', 'apermo-adminbar' );

Then clear cache and reload — Apermo Admin Bar should show "Ignored (via config)".

Test plan

  • Without the constant defined, all plugins behave as before
  • With PLUGIN_REPORT_IGNORE set as comma-separated string, listed plugins show "Ignored (via config)"
  • With PLUGIN_REPORT_IGNORE set as array, same behavior
  • Ignored plugins still show name, author, version, activation status
  • Clear cache and verify ignored plugins don't trigger API calls

@apermo apermo marked this pull request as ready for review April 13, 2026 20:34
Skip wordpress.org API lookups for plugins listed
in the PLUGIN_REPORT_IGNORE constant. Defined in
wp-config.php as array or comma-separated string.
Ignored plugins show "Ignored (via config)" in the
Repository column.
@apermo apermo force-pushed the feature/ignore-list branch from 9e61951 to 17cf193 Compare April 14, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Internal and/or Pro (paid) plugins

1 participant