wpmem_widget_id

Description

This is an action hook in the PayPal Subscription Extension. It comes at the end of the function wpmem_set_exp which sets the expiration date for the user.  The action passes the user ID and a toggle to tell if it is a new subscription or a subscription renewal.

Parameters

$user_id
(integer)(optional) The user’s database primary key.

$renew
(boolean)(optional) Indicates if this is a renewal or a new subscription.

Example

[snippet slug=wpmem_exp_after_set_exp lang=php]

Changelog

  • Introduced in extension version 0.4

Source

wpmem_exp_after_set_exp is located in  /includes/class-wp-members-expiration-user.php