Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesseeproductions/732f564ffb5189a0d6c6c2492be78313 to your computer and use it in GitHub Desktop.
Save jesseeproductions/732f564ffb5189a0d6c6c2492be78313 to your computer and use it in GitHub Desktop.
Coupon Creator Pro After Counter Message
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