File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/give/src/FormMigration/Steps/TermsAndConditions.php
Back
<?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(), ])); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings