Created
April 3, 2016 17:53
-
-
Save jesseeproductions/5abe33d683fcb635a46031c335813cf6 to your computer and use it in GitHub Desktop.
Coupon Creator Pro - Show Url Under Expiration of Coupon
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
/** | |
* Coupon Creator Pro - Show Url Under Expiration of Coupon | |
* | |
*/ | |
add_action('cctor_coupon_expiration', 'cctor_pro_show_url', 15, 1 ); | |
add_action('cctor_print_coupon_expiration', 'cctor_pro_show_url', 15, 1 ); | |
function cctor_pro_show_url($coupon_id) { | |
?> | |
<div class="cctor_url" style="<?php echo esc_attr($cctor_styles['cctor_coupon_terms_text_color']); ?>"><?php echo esc_url( get_the_permalink( $coupon_id ) ); ?></div> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment