Files
2026-10-02 09:58:22 +01:00

13 lines
315 B
PHP

<?php
use Modules\Paddle\Support\ModuleInfo;
if (! function_exists('paddle_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function paddle_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}