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
give / src / Campaigns / Actions / RegisterCampaignShortcodes.php

RegisterCampaignShortcodes.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Campaigns/Actions/RegisterCampaignShortcodes.php

37 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Campaigns\Actions;
4
5 use Give\Campaigns\Shortcodes\CampaignShortcode;
6 use Give\Campaigns\Shortcodes\CampaignFormShortcode;
7 use Give\Campaigns\Shortcodes\CampaignGridShortcode;
8 use Give\Campaigns\Shortcodes\CampaignCommentsShortcode;
9 use Give\Campaigns\Shortcodes\CampaignDonorsShortcode;
10 use Give\Campaigns\Shortcodes\CampaignDonationsShortcode;
11 use Give\Campaigns\Shortcodes\CampaignStatsShortcode;
12 use Give\Campaigns\Shortcodes\CampaignGoalShortcode;
13
14 /**
15 * @since 4.5.0 new imports to support the Shortcodes directory.
16 * @since 4.2.0
17 */
18 class RegisterCampaignShortcodes
19 {
20 /**
21 * @since 4.7.0 add givewp_campaign_stats and givewp_campaign_goal shortcodes
22 * @since 4.5.0 new shortcodes for CampaignDonors, CampaignComments, CampaignDonations.
23 * @since 4.2.0
24 */
25 public function __invoke()
26 {
27 add_shortcode('givewp_campaign', [new CampaignShortcode(), 'renderShortcode']);
28 add_shortcode('givewp_campaign_grid', [new CampaignGridShortcode(), 'renderShortcode']);
29 add_shortcode('givewp_campaign_form', [new CampaignFormShortcode(), 'renderShortcode']);
30 add_shortcode('givewp_campaign_comments', [new CampaignCommentsShortcode(), 'renderShortcode']);
31 add_shortcode('givewp_campaign_donors', [new CampaignDonorsShortcode(), 'renderShortcode']);
32 add_shortcode('givewp_campaign_donations', [new CampaignDonationsShortcode(), 'renderShortcode']);
33 add_shortcode('givewp_campaign_stats', [new CampaignStatsShortcode(), 'renderShortcode']);
34 add_shortcode('givewp_campaign_goal', [new CampaignGoalShortcode(), 'renderShortcode']);
35 }
36 }
37