This file contains hidden or 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 ); |
This file contains hidden or 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 opening PHP tag | |
/**** COPY AND PASTE EVERYTHING BELOW ****/ | |
/** | |
* Remove default email template | |
*/ | |
remove_action( 'eddc_insert_commission', 'eddc_email_alert', 10, 5 ); | |
/** | |
* Build New email template for Commissions |
This file contains hidden or 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 | |
function sd_custom_downloads_excerpt( $post_excerpt ) { | |
$post_excerpt .= '<a href="' . get_the_permalink() . '">More</a>'; | |
return $post_excerpt; | |
} | |
add_filter( 'edd_downloads_excerpt', 'sd_custom_downloads_excerpt' ); |
This file contains hidden or 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 class="products inner"> | |
<div class="products-container clearfix"> | |
<?php if ($products->have_posts()) : $i = 1; ?> | |
<?php while ($products->have_posts()) : $products->the_post(); ?> | |
<div class="product-box product<?php if($i % 4 == 0) { echo ' last'; } ?> border-box"> | |
<div class="product-frame"> | |
<a class="product-title" href="<?php the_permalink(); ?>"> | |
<h2><?php the_title(); ?></h2> | |
</a> | |
<a href="<?php the_permalink(); ?>"> |
This file contains hidden or 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
if ( class_exists( 'EDD_Points_Renderer' ) ) { | |
global $edd_points_render; | |
remove_action( 'edd_before_download_content', array( $edd_points_render, 'edd_points_message_content' ), 10 ); | |
add_action( 'edd_after_download_content', array( $edd_points_render, 'edd_points_message_content' ), 0 ); | |
} |
This file contains hidden or 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
if ( class_exists( 'EDD_Points_Renderer' ) ) { | |
global $edd_points_render; | |
remove_action( 'edd_before_download_content', array( $edd_points_render, 'edd_points_message_content' ), 10 ); | |
add_action( 'edd_after_download_content', array( $edd_points_render, 'edd_points_message_content' ), 0 ); | |
function custom_add_instructions() { ?> | |
<p><strong><span style="color: #ff0000;">2. Use the drop down below to select the template you desire.</span></strong></p> | |
<?php | |
} | |
add_action( 'edd_after_download_content', 'custom_add_instructions', 1 ); | |
} |
This file contains hidden or 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 | |
/** | |
* override single download template | |
*/ | |
global $options; | |
// Custom filter | |
$single_tags_text = apply_filters('single_tags_text', __('Tags: ', 'volatyl')); | |
get_header(); |
This file contains hidden or 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
/** | |
* custom function for footer icons | |
*/ | |
function custom_lattice_icons() { | |
$twitter = get_theme_mod( 'lattice_twitter' ); | |
$facebook = get_theme_mod( 'lattice_facebook' ); | |
$instagram = get_theme_mod( 'lattice_instagram' ); | |
$gplus = get_theme_mod( 'lattice_gplus' ); | |
if ( $twitter || $facebook || $instagram || $gplus ) { |
This file contains hidden or 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 | |
/** | |
* This template is used to display the purchase summary with [edd_receipt] | |
*/ | |
global $edd_receipt_args, $edd_options; | |
$payment = get_post( $edd_receipt_args['id'] ); | |
$meta = edd_get_payment_meta( $payment->ID ); | |
$cart = edd_get_payment_meta_cart_details( $payment->ID, true ); | |
$user = edd_get_payment_meta_user_info( $payment->ID ); |
This file contains hidden or 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 | |
/** | |
* If the license is not entered or is not valid, show notice. For use with EDD Software Licensing | |
* | |
* CHANGE sample_ TO YOUR FUNCTION PREFIX | |
* | |
* https://easydigitaldownloads.com/extensions/software-licensing/?ref=184 | |
*/ | |
function sample_admin_notice() { |