Skip to content

Instantly share code, notes, and snippets.

@greathmaster
Created November 5, 2015 17:24
Show Gist options
  • Save greathmaster/2645457eb2c6d5cbb217 to your computer and use it in GitHub Desktop.
Save greathmaster/2645457eb2c6d5cbb217 to your computer and use it in GitHub Desktop.
Echo the next payment date for a member.
function my_pmpro_show_next_payment_date()
{
$next_date = pmpro_next_payment(NULL, "success", "date_format");
if($next_date)
echo $next_date;
else
echo "---";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment