Contributing

If you plan to contribute or extend the plugin, follow these notes:

  1. Follow the coding style used in the plugin (see CLAUDE.md and copilot-instructions.md in repo).
  2. Keep Template Builder UI layout-only. Do not add data-fetch logic into template-builder modules.
  3. For frontend-visible changes, update both the compiler (PHP) and the canvas preview JS/CSS so the admin preview matches compiled output.
  4. When adding AJAX endpoints, follow the existing pattern in includes/class-sanilwb-ajax.php: nonce checks, capability checks, input sanitization and wp_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.