Thank you for your interest in contributing! We welcome all contributions, from bug reports to feature requests and code changes.
- Fork the repository.
- Clone your fork locally.
- Install dependencies:
npm install composer install
- Create a branch for your feature or fix:
git checkout -b feature/my-awesome-feature
- Make your changes.
- Commit your changes using Conventional Commits:
Note: We use
git commit -m "feat: add amazing new slide effect"commitlintto enforce this standard. Your commit will fail if the message is invalid. - Push to your fork.
- Open a Pull Request.
- PHP: We follow WordPress Coding Standards (WPCS). Run
composer run lintto check. - JavaScript/TypeScript: We use the standard WordPress ESLint config. Run
npm run lint:jsto check. - CSS/SCSS: We use Stylelint. Run
npm run lint:cssto check.
If your changes modify a block's save() output — including data-wp-context, HTML structure, class names, or new elements — you must add a deprecation entry in the block's deprecated.tsx.
- Copy the previous
save()function into thedeprecatedarray. - Include the
attributesandsupportsfrom the old version (copy the fullsupportsfromblock.json— don't simplify it, or alignment/color classes will fail validation). - For blocks with inner blocks, use
useInnerBlocksProps.save()in the deprecatedsave()function, just like the current save does.
Without this, existing content will show "Block contains unexpected or invalid content" errors in the editor.
See the Block Deprecation API for details.
To create a production-ready ZIP file:
make zipThis will create rt-carousel.zip in the project root, optimized for distribution (no dev dependencies).