AddHoneyPotFieldToDonationForms.php
1 year ago
ConvertConsentBlockToFieldsApi.php
2 years ago
ConvertDonationAmountBlockToFieldsApi.php
9 months ago
ConvertDonationFormBlocksToFieldsApi.php
1 year ago
ConvertQueryDataToDonationForm.php
2 years ago
DispatchDonateControllerDonationCreatedListeners.php
1 year ago
DispatchDonateControllerSubscriptionCreatedListeners.php
2 years ago
GenerateAuthUrl.php
2 years ago
GenerateDonateRouteSignatureArgs.php
2 years ago
GenerateDonateRouteUrl.php
2 years ago
GenerateDonationConfirmationReceiptUrl.php
2 years ago
GenerateDonationConfirmationReceiptViewRouteUrl.php
2 years ago
GenerateDonationFormPreviewRouteUrl.php
2 years ago
GenerateDonationFormValidationRouteUrl.php
2 years ago
GenerateDonationFormViewRouteUrl.php
2 years ago
GetOrCreateDonor.php
2 years ago
PrintFormMetaTags.php
1 year ago
RegisterFormEntity.php
1 year ago
ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe.php
1 year ago
SanitizeDonationFormPreviewRequest.php
2 years ago
StoreBackwardsCompatibleFormMeta.php
2 years ago
ValidateReceiptViewPermission.php
1 year ago
RegisterFormEntity.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\DonationForms\Actions; |
| 4 | |
| 5 | use Give\Framework\Support\Facades\Scripts\ScriptAsset; |
| 6 | |
| 7 | /** |
| 8 | * @since 4.2.0 |
| 9 | */ |
| 10 | class RegisterFormEntity |
| 11 | { |
| 12 | /** |
| 13 | * @since 4.2.0 |
| 14 | */ |
| 15 | public function __invoke() |
| 16 | { |
| 17 | $handleName = 'givewp-form-entity'; |
| 18 | $scriptAsset = ScriptAsset::get(GIVE_PLUGIN_DIR . 'build/formEntity.asset.php'); |
| 19 | |
| 20 | wp_register_script( |
| 21 | $handleName, |
| 22 | GIVE_PLUGIN_URL . 'build/formEntity.js', |
| 23 | $scriptAsset['dependencies'], |
| 24 | $scriptAsset['version'], |
| 25 | true |
| 26 | ); |
| 27 | |
| 28 | wp_enqueue_script($handleName); |
| 29 | } |
| 30 | } |
| 31 |