File: /var/www/html/wpmuhibbah_err/wp-content/plugins/give/src/FormMigration/Steps/TermsAndConditions.php
<?php
namespace Give\FormMigration\Steps;
use Give\FormMigration\Concerns\Blocks\BlockFactory;;
use Give\FormMigration\Contracts\FormMigrationStep;
class TermsAndConditions extends FormMigrationStep
{
public function canHandle(): bool
{
return $this->formV2->isTermsEnabled();
}
public function process()
{
$this->fieldBlocks->insertAfter('givewp/payment-gateways', BlockFactory::termsAndConditions([
'checkboxLabel' => $this->formV2->getTermsAgreementLabel(),
'agreementText' => $this->formV2->getTermsAgreementText(),
]));
}
}