Return whether the level is expiring soon or not.


/**
 * Return whether the level is expiring soon or not.
 *
 * @param bool   $r     true if expiring soon, false if not.
 * @param object $level The level object.
 *
 * @return bool true if expiring soon, false if not.
 */
$r = apply_filters( 'pmpro_is_level_expiring_soon', $r, $level );

Parameters

$r
bool
$level
object

Return Value

true or false


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.php

View in Source Code

Related Articles and Recipes

Choose when to display the Renew link to members who sign up for a membership level with an expiration date. By Travis Lima