manifest / integrations / enhance-wordpress-plugin
Enhance SSR
Wordpress plugin to serverside render enhance components in wordpress
by Ryan Bethel · github.com/enhance-dev/enhance-wordpress-plugin · website
★ 19stars
5composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/enhance-dev/enhance-wordpress-plugin/archive/refs/heads/main.zipAlso on Packagist as enhance-dev/enhance-wordpress-plugin:
composer require enhance-dev/enhance-wordpress-pluginFrom the readme
Enhance Wordpress Plugin
This plugin server side renders enhance components for wordpress sites.
It is experimental and should probably not be used in production yet.
Two plugins are included:
1. enhance-ssr-wp-plugin.php server side render any enhance custom elements in the wordpress site.
These can be added in PHP templates, raw HTML blocks in the editor, or as predefined blocks.
2. enhance-wp-blocks-plugin.php demonstrates wrapping an Enhance component for use in the block editor.
This works with the SSR plugin. These blocks are stored in the WP database as HTML (i.e. Hi) and then the SSR plugin will them wherever they are used.
Install Plugin Directly
To add the plugin to a Wordpress project you can clone this repository into a folder in the plugins directory for the project.
All required dependencies are included in the vendor directory with the repository so running composer install should not be required.
Install Plugin with Composer
Composer can also be used to install the plugin to a Wordpress project.
Development Copy of WordPress Instructions
- Local
Examples
Write Elements
Enhance Elements are pure functions that accept state and return HTML.
Here is an exampl