lightspeeddevelopment / tour-operator
The Tour Operators Plugin provides 3 post types (Accommodations, Destinations and Tours) that are the core of any Tour Operator. Use them to build day-by-day itineraries for tours.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 0
Open Issues: 117
Type:wordpress-plugin
Requires
- php: >=7.2
- composer/installers: ^2.0.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.0.0
- phpcompatibility/phpcompatibility-wp: ^2.1.0
- phpunit/phpunit: ^8.5
- wp-coding-standards/wpcs: ^3.0
- wpackagist-plugin/wordpress-seo: ^21.0
- wpackagist-theme/lsx: ^3.0
- dev-2.1-trunk
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0-beta-2
- 2.0-beta-1
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- dev-copilot/fix-598e3708-d3f3-4ddc-8547-246ea591224c
- dev-624-standardize-accommodation-block-meta
- dev-583-standardize-block-meta
- dev-dependabot/npm_and_yarn/wordpress/scripts-30.23.0
- dev-dependabot/npm_and_yarn/wordpress/stylelint-config-23.22.0
- dev-2.1-bugherd-fixes
- dev-2.1-modal-enhancements
- dev-copilot/fix-494e2c5f-cdf8-4f91-a96c-fb7ae28ac203
- dev-codex/add-pull-request-template-and-documentation-2025-08-13
- dev-xwwsu5-codex/add-fields-to-block.json-files-2025-08-13
- dev-codex/add-fields-to-block.json-files-2025-08-13
- dev-509-swipable-carousel-block
- dev-master
- dev-568-add-issue-templates
- dev-563-audit-and-enhance-dashicons
- dev-566-add-copilot-instructions
- dev-554-export-icons-from-design-system
- dev-555-readme-updates
This package is auto-updated.
Last update: 2025-10-05 01:10:06 UTC
README
A WordPress plugin
Description
A WordPress plugin
Installation
- Upload the plugin files to the
/wp-content/plugins/tour-operator
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Configure the plugin through the WordPress admin interface.
Features
- WordPress integration
- Easy to use interface
- Customizable settings
- Developer-friendly hooks and filters
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
Development
This plugin follows WordPress coding standards and best practices.
Linting & Coding Standards
PHP coding standards are enforced via PHP_CodeSniffer with the 10up/phpcs-composer
package providing the 10up-Default
ruleset plus WordPress Core, Docs, Extra and PHPCompatibility checks.
Two PHPCS configuration files are provided:
phpcs.xml.dist
– Project-specific rules (exclusions, prefixes, text domain)..phpcs.xml.dist
– Minimal file to help IDE integrations (points directly to10up-Default
).
Run linting locally with Composer:
composer run lint
Or run the full suite (JS, CSS, PHP):
npm run lint:all
Auto-fix PHP issues where possible:
composer phpcbf
Generate a machine-readable report (used in CI artifacts):
composer phpcs:report
Override the PHP compatibility test version (example: PHP 7.2+):
./vendor/bin/phpcs --runtime-set testVersion 7.2-
Continuous Integration
PHPCS runs automatically on pushes to 2.1-trunk
and all pull requests via the GitHub Action workflow at .github/workflows/phpcs.yml
using the version specified in that workflow file (currently 10up/wpcs-action@v2.0.0
—please keep this in sync with the workflow).
The workflow:
- Installs Composer + Node dependencies.
- Runs PHPCS with annotations on the PR (errors & warnings surfaced inline).
- Uploads a report artifact when available.
Project Management Automation
The dev dependency @wordpress/project-management-automation
is available for future automation of project processes (labels, milestones, release tasks). See the package docs: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-project-management-automation/
You can invoke scripts or node-based automation utilities that leverage this package within future workflows (e.g. triage, release preparation).
PHPCS Baseline & Incremental Improvements
An initial PHPCS baseline (phpcs-baseline.xml
) has been generated to snapshot existing legacy violations. Strategy:
- New/modified code should meet standards before merging.
- Large legacy directories can be refactored incrementally; regenerate the baseline after significant cleanups:
composer phpcs:baseline
To review only changed PHP files locally (example):
git diff --name-only origin/2.1-trunk... | grep -E '\\.php$' | xargs vendor/bin/phpcs -d memory_limit=512M
Diff‑Only Lint in CI (Optional Pattern)
A future enhancement can add a workflow that:
- Collects changed PHP files in the PR.
- Runs PHPCS only on that subset.
- Fails if new errors appear that are not in the historical baseline.
If you’d like this automated, request: “Add diff-only PHPCS CI”.
Automation Workflows
Current relevant workflows:
phpcs.yml
– Full annotated PHPCS run (10up action).project-automation.yml
– PR lifecycle automation (labels, milestone logic potential).
Planned / optional:
phpcs-diff.yml
– Scans only changed files (not yet added).- Release prep automation leveraging
@wordpress/project-management-automation
hooks.
Adding New Automation Tasks
Use the WordPress action directly in a workflow step:
- uses: WordPress/gutenberg/packages/project-management-automation@trunk with: github_token: ${{ secrets.GITHUB_TOKEN }}
You can scope events (pull_request
, issues
) and extend with additional job steps (e.g. changelog validation, label enforcement).
IDE Integration
If your IDE does not detect the 10up-Default
ruleset, it will fall back to .phpcs.xml.dist
. Make sure your PHPCS extension/binary points to vendor/bin/phpcs
.
Example manual invocation with explicit standard:
vendor/bin/phpcs --standard=phpcs.xml.dist
GitHub Copilot Integration
This repository is configured with GitHub Copilot support including:
- Custom prompts in
.github/prompts/
- Instructions in
.github/instructions/
- Agents in
.github/agents/
- Chat modes in
.github/chatmodes/
Tour Operator Docs & .github Kit
Curated documentation and GitHub configuration for LSX Tour Operator (blocks-first WordPress plugin). This kit standardises coding conventions, block authoring, CI, and collaboration.
- Docs live in
/docs
. - GitHub configs live in
/.github
(issue/PR templates, workflows, Copilot prompts). - Based on WordPress Block API v3, block.json metadata, theme.json styling and Playwright E2E.
- Uses @wordpress/scripts for build, linting, and testing.
File Structure
tour-operator/
├── plugin.php
├── README.md
├── .github/
│ ├── prompts/
│ ├── instructions/
│ ├── agents/
│ └── chatmodes/
└── .vscode/
└── settings.json
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Support
For support and questions, please use the GitHub Issues tab.
License
This plugin is licensed under the GPL v2 or later.
Changelog
1.0.0
- Initial release
Author: Author Version: 1.0.0