Need help in the process of creating your own WordPress theme?
Demo plugin is a set of dev tools which either help during development or change the way theme is displayed on the demo page (ie. production server), as well as provides automatic demo content export functionality.
Common use cases:
Note
Basic structure can be downloaded here: Theme Demo Plugin boilerplate . After cloning, run composer update to get plugin core.
plugins/ │--theme-name-demo-plugin/ │--class-fw-demo-plugin.php # Demo functionality hooks │--class-fw-demo-content.php # Demo content import/export related functionality │--class-fw-settings-form.php # Demo plugin settings form settings in wp-admin │--wp-cli-functions.php # Functions accessible to WP CLI │--... │--extensions │--ct-demo │--class-fw-extension-ct-demo.php │--hooks.php │--manifest.php │--shortcodes │--ct_shortcode_markup │--config.php │--options.php │--views │--view.php