Skip to content
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

Update plugin structure to self-disable after core-merge #49

Open
garretthyder opened this issue Mar 28, 2020 · 0 comments
Open

Update plugin structure to self-disable after core-merge #49

garretthyder opened this issue Mar 28, 2020 · 0 comments

Comments

@garretthyder
Copy link
Contributor

Saw this on another feature plugin repo and figured I'd ensure we're meeting this requirement.

Original Post

One requirement for WordPress Core feature plugins is that they need to "self-disable" after they are merged to core.

An easy way to do that is when the plugin's base-file (wp-autoupdates.php) has only the plugin's headers and a check whether the plugin has been merged, and all the functionality/code is in another file that gets included. For example the Lazy Loading Feature Plugin was recently restructured to include a functions.php file for that reason.

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

No branches or pull requests

1 participant