Draft plugin for ClassicPress Directory integrator.
Steps
- Create plugin update system that pulls from the directory
- Create plugin page
- Create theme update system that pulls from the directory (may need Changeset 53933 or ClassicPress v.2)
- Create theme page
Plugin from the directory now can update as WP.org plugins.
They have to set a proper header field:
* Update URI: https://directory.classicpress.net/wp-json/wp/v2/plugins?byslug=classicpress-directory-integration
Use this header for testing:
* Update URI: https://staging-directory.classicpress.net/wp-json/wp/v2/plugins?byslug=classicpress-directory-integration
Features
-
Only one API call is sent to the directory
-
Plugin having updates that are not compatible with current configuration are hilighted
Plugin from the directory now can be installed using the "Install CP plugins" menu under "Plugins" menu.
WP-CLI commands
- Flush transients:
wp cpdi flush