This filter allows to modify whether the status update for a particular subscription will process the related group memberships or not.
Arguments:
$handle boolean
– whether to act on the subscription status update
$subscription WC_Subscription
– the subscription
$new_status string
– the new status
$old_status string
– the old status
Return:
boolean
whether to process the group memberships for the subscription
This filter allows to modify the output displayed for unlimited and time-limited memberships on the user profile page.
Arguments:
$membership_info string
– The membership information as to be output for the particular $group_id
.
$group_id int
– The ID of the group for which the membership info is displayed.
$ts int
– A UNIX timestamp indicating the moment of expiration of the membership or Groups_WS_Terminator::ETERNITY
for unlimited memberships.
Return:
string
membership info HTML
This filter allows to modify the group membership info displayed for a particular group within the
groups_woocommerce_memberships
shortcode.
Arguments:
$membership_info string
– The membership information to output for the $group_id
.
$group_id int
– The ID of the group for which the membership info is displayed.
$ts int
– A UNIX timestamp indicating the moment of expiration of the membership or Groups_WS_Terminator::ETERNITY
for unlimited memberships.
Return:
string
membership info HTML
This filter allows to modify the inline styles that are output just before the subscription info is displayed on the user profile page. This is only relevant when subscriptions are used (not unlimited or time-limited memberships).
The
$style
returned is output as is, i.e. it must start and end with the appropriate HTML tags
<style type="css/text">
and
</style>
.
Arguments:
$style string
– current inline styles rendered before the subscription info is output
Return:
string
– the inline styles