Notification not pulling in accurate expire date using pmpro_isLevelExpiringSoon
-
I am trying to hook in to the
pmpro_isLevelExpiringSoon()
function as I see it laid out in your docs. The problem is it is not accurately pulling in (for example) a members expiration date. Member signed up on June 1st 2016 and should expire June 1st, 2017. However they are seeing the notification all of the time. I’ve read through our code to see what it could be but can only trace it back to your function. Can you give any insight on to what is going on here or how I could accomplish such a task?/************************************************** Display front end notification **************************************************/ function membership_renewal_notification() { global $pmpro_levels, $current_user, $levels; if( pmpro_isLevelExpiringSoon( $current_user->membership_level) ) { ?> <div class="alert-danger alert" style="text-align:center;">Your membership is set to expire soon. <a href="<?php echo pmpro_url("checkout", "?level=" . $current_user->membership_level->id, "https")?>" style="color:#fff;"><?php _e("Please click here to RENEW", "pmpro");?></a></div> <?php } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Notification not pulling in accurate expire date using pmpro_isLevelExpiringSoon’ is closed to new replies.