Contributing
If you plan to contribute or extend the plugin, follow these notes:
- Follow the coding style used in the plugin (see
CLAUDE.mdandcopilot-instructions.mdin repo). - Keep Template Builder UI layout-only. Do not add data-fetch logic into template-builder modules.
- For frontend-visible changes, update both the compiler (PHP) and the canvas preview JS/CSS so the admin preview matches compiled output.
- When adding AJAX endpoints, follow the existing pattern in
includes/class-sanilwb-ajax.php: nonce checks, capability checks, input sanitization andwp_send_json_*responses.
Local testing
- Use a local WP install and activate the plugin to verify UI changes in the admin and rendered output on the frontend.