Change the end date for the membership and/or subscription.


/**
 * Filter the end date for the membership/subscription.
 *
 * @since 1.8.9
 *
 * @param string $enddate     date/time formatted for MySQL (YYYY-MM-DD)
 * @param int $user_id.       ID of the user checking out
 * @param object $pmpro_level object of level being checked out for
 * @param string $startdate   startdate calculated above (default current time in MySQL format)
 *
 * @return string end date in MySQL format (YYYY-MM-DD)
 */
apply_filters( 'pmpro_checkout_end_date', $enddate, $user_id, $pmpro_level, $startdate );

Parameters

$enddate
string
$user_id
int
$pmpro_level
object
$startdate
string

Return Value

$enddate in MySQL format (YYYY-MM-DD)


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/checkout.php

View in Source Code