curtistinkers/food-and-drink-menu-unlocker (1.0.0)
Published 2025-12-19 00:07:41 +00:00 by curtistinkers
Installation
{
"repositories": [{
"type": "composer",
"url": " "
}
]
}composer require curtistinkers/food-and-drink-menu-unlocker:1.0.0About this package
Unlocks premium features of the food and drink menu plugin for WordPress sites
Food and Drink Menu WordPress Plugin Unlocker
Small WordPress plugin that flips the fdm-permission-level option to enable
premium features in the bundled Food and Drink Menu plugin.
Requirements
- WordPress: >=6.5
- PHP: >= 8.2
Quick commands
- Install dev tools:
composer install - Run code linting:
composer lint(WPCS for plugin code; PSR-12 fortests) - Run static analysis:
composer phpstan - Run unit tests:
composer test - Full CI checks (lint, phpstan, tests):
composer test:full
How it works
- Main plugin logic lives in
food-and-drink-menu-unlocker.php. The file defines a$new_permissionsarray and writes it into the WordPress option table asarray($new_permissions)usingadd_option/update_option. - Tests use lightweight stubs in
tests/bootstrap.php(no WP runtime).
Releasing / packaging
- Pushing a Git tag using the
vprefix (for examplev1.2.3) will trigger CI and, upon successful CI workflow completion, an automatic packaging workflow will create a zip artifact containing only the files required for WordPress. - The artifact is named
food-and-drink-menu-unlocker-<tag-without-v>.zipand is available from the Actions run UI. You can also trigger the package workflow manually viaworkflow_dispatchin the Actions tab.
Dependencies
Dependencies
| ID | Version |
|---|---|
| php | >=8.2 |
Development dependencies
| ID | Version |
|---|---|
| phpstan/extension-installer | ^1.4 |
| phpstan/phpstan-strict-rules | ^2.0 |
| phpunit/php-code-coverage | ^12.5 |
| phpunit/phpunit | ^12.5 |
| szepeviktor/phpstan-wordpress | ^2.0 |
| wp-coding-standards/wpcs | ^3.0 |
Keywords
wordpress-plugin
food-and-drink-menu