Skip to content

Commit

Permalink
Remove Swag store link from WordCamp ticket purchases.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Mar 28, 2024
1 parent b8dea08 commit a09b54c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,8 @@ function modify_default_options( $options ) {
function modify_email_templates( $options ) {
$sponsors_string = get_global_sponsors_string();
$donation_string = get_donation_string();
$swag_string = get_swag_store_string();

$email_footer_string = "\n\n===\n\n$sponsors_string\n\n$donation_string\n\n$swag_string";
$email_footer_string = "\n\n===\n\n$sponsors_string\n\n$donation_string";

$templates_that_need_footers = array(
'email_template_single_purchase',
Expand Down Expand Up @@ -866,12 +865,11 @@ function modify_shortcode_contents( $shortcode_contents, $tix_action ) {

$sponsors_string = get_global_sponsors_string();
$donation_string = get_donation_string();
$swag_string = get_swag_store_string();

if ( false !== strpos( $shortcode_contents, $content_end ) ) {
$shortcode_contents = str_replace(
$content_end,
wpautop( "$sponsors_string\n\n$donation_string\n\n$swag_string" ) . $content_end,
wpautop( "$sponsors_string\n\n$donation_string" ) . $content_end,
$shortcode_contents
);
}
Expand Down

0 comments on commit a09b54c

Please sign in to comment.