getArguments(); if (! key_exists('a-pro', $arguments)) { continue; } if (! key_exists('label', $arguments)) { $arguments['label'] = ''; } if (! key_exists('instructions', $arguments)) { $arguments['instructions'] = ''; } $type = $arguments['a-type'] ?? ''; if ('tab' === $type) { $fieldInfo->setArgument('label', $arguments['label'] . ' (PRO)'); } else { $fieldInfo->setArgument( 'instructions', sprintf( 'Upgrade to PRO to unlock. %s', Plugin::PRO_VERSION_URL, $arguments['instructions'] ) ); } } return $fieldsInfo; } }