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.0

About 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 for tests)
  • 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_permissions array and writes it into the WordPress option table as array($new_permissions) using add_option/update_option.
  • Tests use lightweight stubs in tests/bootstrap.php (no WP runtime).

Releasing / packaging

  • Pushing a Git tag using the v prefix (for example v1.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>.zip and is available from the Actions run UI. You can also trigger the package workflow manually via workflow_dispatch in 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
Details
Composer
2025-12-19 00:07:41 +00:00
1
curtistinkers
MIT
4.1 KiB
Assets (1)
Versions (1) View all
1.0.0 2025-12-19