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 // DO NOT COPY THIS LINE | |
/** | |
* Add a {downloads} tag for use in either the purchase receipt email or admin notification emails | |
*/ | |
edd_add_email_tag( 'downloads', __( 'A linked list of downloads purchased', 'edd' ), 'sumobi_edd_email_tag_downloads' ); | |
/** | |
* The {downloads} email tag (no links) | |
*/ |
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 // DO NOT COPY THIS LINE | |
// remove payment gateway icon from above purchase form | |
remove_action( 'edd_checkout_form_top', 'edd_show_payment_icons' ); | |
// add payment gateway above CC form | |
add_action( 'edd_before_cc_fields', 'edd_show_payment_icons' ); |
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 // DO NOT COPY THIS LINE | |
/** | |
* remove old payment gateway select function | |
*/ | |
remove_action( 'edd_payment_mode_select', 'edd_payment_mode_select' ); | |
/** | |
* create and add new payment gateway select function |
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
Copy the history-downloads.php file from the EDD templates folder into | |
the "edd_templates" directory in active theme. Once completed... | |
FIND: | |
<td class="edd_download_download_name"><?php echo esc_html( $name ); ?></td> | |
REPLACE WITH: | |
<td class="edd_download_download_name"><a href="<?php echo esc_url( get_permalink( $download['id'] ) ); ?>"><?php echo esc_html( $name ); ?></a></td> |
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 // DON'T COPY THIS LINE | |
function sd_fes_submission_redirect( $response, $post_id, $form_id ) { | |
$response['redirect_to'] = 'http://SITEURL.com/'; | |
return $response; | |
} | |
add_filter( 'fes_add_post_redirect', 'sd_fes_submission_redirect', 10, 3 ); |
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 | |
/** | |
* The Sidebar containing the main widget areas. | |
* | |
* @package SimpleMag | |
* @since SimpleMag 1.4 | |
**/ | |
global $ti_option; | |
?> |
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
<div id="search-2" class="widget widget_search"> | |
<h3>SEARCH</h3> | |
<form method="get" id="searchform" action="http://curlsunderstood.com/" role="search"> | |
<input type="text" name="s" id="s" value="NEW TEXT" onfocus="if(this.value=='NEW TEXT')this.value='';" onblur="if(this.value=='')this.value='NEW TEXT';" /> | |
<button type="submit"> | |
<i class="icon-search"></i> | |
</button> | |
</form> | |
</div> |
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 // DO NOT COPY THIS LINE | |
/** | |
* remove original filter that adds purchase button below download content | |
*/ | |
remove_filter( 'the_content', 'edd_after_download_content' ); | |
/** | |
* add new filter that adds "is_archive()" to the conditional so | |
* that the button will also show on downloads archives |
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 // DO NOT COPY THIS LINE | |
/** | |
* Show message instead of registration form [edd_register] when user is logged in | |
*/ | |
function sd_already_registered_message() { | |
if ( is_user_logged_in() ) { | |
// custom message | |
$message = "You're already logged in."; |
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 // don't copy this line | |
// Change callback function for points message | |
if ( class_exists( 'EDD_Points_Renderer' ) ) { | |
// remove default points message | |
remove_action( 'edd_before_download_content', array( $edd_points_render, 'edd_points_message_content' ), 10 ); | |
// call new points message function | |
add_action( 'edd_before_download_content', 'sd_custom_points_message', 10 ); |