PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/Form/Template.php +6 -0 2.30.04.16.9 View file →
@@ -8,9 +8,11 @@
8 8 */
9 9
10 10 namespace Give\Form;
11 11
12 +use Give\DonationForms\Models\DonationForm;
12 13 use Give\Form\Template\Options;
14 +use Give\Helpers\Form\Utils;
13 15 use Give\Helpers\Form\Utils as FormUtils;
14 16 use Give\Receipt\DonationReceipt;
15 17
16 18 defined('ABSPATH') || exit;
@@ -322,8 +324,12 @@
322 324 * @return string
323 325 */
324 326 public function getFormFeaturedImage($formId)
325 327 {
328 + if (Utils::isV3Form($formId)) {
329 + return DonationForm::find($formId)->settings->designSettingsImageUrl;
330 + }
331 +
326 332 return get_the_post_thumbnail_url($formId, 'full');
327 333 }
328 334
329 335 /**