Created
June 3, 2019 14:05
-
-
Save jesseeproductions/732f564ffb5189a0d6c6c2492be78313 to your computer and use it in GitHub Desktop.
Coupon Creator Pro After Counter Message
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
add_action( 'cctor_click_actions', 'cctor_pro_after_counter_msg', 15, 2 ); | |
function cctor_pro_after_counter_msg( $coupon_id, $coupon_expiration = null ) { | |
if ( ! is_singular( Cctor__Coupon__Main::POSTTYPE ) ) { | |
return false; | |
} | |
if ( ! is_object( $coupon_expiration ) ) { | |
return false; | |
} | |
if ( "counter-show" != $coupon_expiration->get_counter_show_status() ) { | |
return false; | |
} | |
?> | |
<div class="after-counter-msg"> | |
After Counter Message | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment