Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
woocommerce-quick-donation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wordpress
woocommerce-quick-donation
Commits
6d2cfd05
Commit
6d2cfd05
authored
Oct 25, 2015
by
Varun Sridharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ShortCode Issue Fixed
https://wordpress.org/support/topic/shortcode-position-and-page-content?replies=7
parent
b7831763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
class-shortcode-handler.php
includes/class-shortcode-handler.php
+6
-2
No files found.
includes/class-shortcode-handler.php
View file @
6d2cfd05
...
...
@@ -31,9 +31,13 @@ class WooCommerce_Quick_Donation_Shortcode {
$donation_box
=
WC_QD
()
->
f
()
->
generate_donation_selbox
(
$settings
[
'grouped'
],
$settings
[
'type'
]);
$donation_price
=
WC_QD
()
->
f
()
->
generate_price_box
();
$currency
=
get_woocommerce_currency_symbol
();
do_action
(
'wc_quick_donation_before_doantion_form'
,
$settings
[
'type'
],
$settings
[
'grouped'
]);
$return_value
=
''
;
ob_start
();
do_action
(
'wc_quick_donation_before_doantion_form'
,
$return_value
,
$settings
[
'type'
],
$settings
[
'grouped'
]);
WC_QD
()
->
f
()
->
load_template
(
'donation-form.php'
,
WC_QD_TEMPLATE
);
do_action
(
'wc_quick_donation_after_doantion_form'
,
$settings
[
'type'
],
$settings
[
'grouped'
]);
do_action
(
'wc_quick_donation_after_doantion_form'
,
$return_value
,
$settings
[
'type'
],
$settings
[
'grouped'
]);
return
ob_get_clean
();
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment