Skip to content

Commit

Permalink
add snippet for relocating social buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfeck committed Jan 13, 2020
1 parent 4bb1a30 commit 06e21d5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions addons/eea-events-social-sharing/jf_ee_move_social_buttons.php
@@ -0,0 +1,27 @@
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file

//* Moves the social share buttons so they're before the registration details on the Thank You page

add_action(
'AHEE__EED_Thank_You_Page__init_end',
'jf_ee_move_social_buttons'
);
function jf_ee_move_social_buttons() {
if (class_exists('EED_Social_Buttons')) {
add_action(
'AHEE__thank_you_page_overview_template__content',
array(
'EED_Social_Buttons',
'thank_you_page_buttons'
)
);
remove_action(
'AHEE__thank_you_page_overview_template__bottom',
array(
'EED_Social_Buttons',
'thank_you_page_buttons'
)
);
}
}

0 comments on commit 06e21d5

Please sign in to comment.