A WordPress plugin that adds animations, effects, and interactivity to Gutenberg blocks.
- WordPress: 6.6.4 or higher
- PHP: 8.0 or higher
- Node.js: 18 or higher
- Block Editor: Gutenberg (built-in WordPress editor)
# Install dependencies
npm install
# Development build (with watch mode)
npm run start
# Production build (free version)
npm run build
# Premium build
npm run build:premium
# Linting
npm run lint
npm run lint:fix
# CSS linting
npm run lint:css
npm run lint:css:fixnpm run start- Development build with watch modenpm run build- Production build for free versionnpm run build:premium- Production build for premium versionnpm run lint- Run JavaScript and CSS lintingnpm run lint:js- JavaScript linting onlynpm run lint:css- CSS linting onlynpm run package- Create plugin packagenpm run optimize-videos- Optimize video assets
src/
├── action-types/ # Available action types (PHP + JS)
├── interaction-types/ # Available trigger types (PHP + JS)
├── admin/ # Admin interface
├── editor/ # Block editor integration
├── frontend/ # Frontend functionality
├── locations/ # Location rules
└── rest-api/ # REST API endpoints
dist/ # Built assets
pro__premium_only/ # Premium-only features
scripts/ # Build and utility scripts
- Make changes to source files in
src/ - Run
npm run startfor development with watch mode - Test changes in WordPress admin
- Run
npm run lintto check code quality - Run
npm run buildfor production build - Test the built plugin
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run linting (
npm run lint) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow WordPress coding standards
- Use ESLint and Stylelint for code quality
- Write clear commit messages
- Test your changes thoroughly
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
- GitHub: github.com/gambitph/Interactions
- Plugin Page: WordPress.org
- Website: wpinteractions.com
Made with ❤️ by Gambit Technologies