Skip to content

Disable Site Health #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Disable Site Health #41

merged 1 commit into from
Oct 14, 2022

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Oct 14, 2022

This disables Site Health by removing the wp_maybe_grant_site_health_caps filter from user_has_cap.

Fixes #35

@adamziel
Copy link
Collaborator

adamziel commented Oct 14, 2022

Thank you @dd32! It would be nice to rewrite this as a remove_filter or so once we have a proper mu-plugin, but for now these preg_replace call are the way to go.

@adamziel adamziel merged commit 456f63a into trunk Oct 14, 2022
@adamziel adamziel deleted the try/disable-sitehealth branch October 14, 2022 22:23
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.

Disable site health
2 participants