File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/give/src/DonationForms/Actions/ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe.php
Back
<?php namespace Give\DonationForms\Actions; use Give\DonationForms\DataTransferObjects\DonationConfirmationReceiptViewRouteData; class ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe { /** * Replace the give_receipt shortcode with the v3 confirmation page iframe. * * @since 3.16.0 */ public function __invoke(string $view): string { $data = DonationConfirmationReceiptViewRouteData::fromRequest(give_clean($_GET)); if ($data->receiptId) { $viewUrl = (new GenerateDonationConfirmationReceiptViewRouteUrl())($data->receiptId); return "<iframe style='width: 1px;min-width: 100%;border: 0;' data-givewp-embed src='$viewUrl'></iframe>"; } return $view; } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings