This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Please do not include the opening PHP tag if you already have one | |
function ee_add_target_blank_to_thank_you_page_links() { | |
wp_add_inline_script( | |
'thank_you_page', | |
'jQuery( document ).ready(function($) { | |
$("#espresso-thank-you-page-overview-dv .ee-attention a").each(function() { | |
$(this).attr("target","_blank"); | |
}); | |
});' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Please do not add the opening PHP tag if you already have one | |
add_filter('default_content', 'tw_ee_default_post_content', 2, 10); | |
function tw_ee_default_post_content($post_content, $post){ | |
if(get_post_type($post) == 'espresso_events'){ | |
$post_content = 'Add your default EE post content here'; | |
} | |
return $post_content; | |
} |
OlderNewer