Introduce the newspack_managed_plugins filter #2605
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
Adds a filter to allow for the modification of the managed plugins array. For example, some hosts may pre-install plugins in a way that Newspack isn't able to detect and so plugins that are active may not be recognised as such by Newspack, preventing users from using the features. This is the case on VIP where Jetpack is always active but doesn't appear in the normal plugins list.
Here's how the filter could be used on VIP to ensure wizards move past the Jetpack requirement:
How to test the changes in this Pull Request:
Testing on VIP would be best if possible. Otherwise, filter the
get_plugins()
function to explicitly remove Jetpack even when active.Other information: