Documentation

PA_NewsletterTypeSubscriber
in package

The PuzzleAnywhere NewsletterTypeSubscriber class. It allows for retrieving newsletter type subscription data, as well as confirming and unsubscribing from newsletter types. This is not related to user subscription information, unless the newsletter type is paywalled to subscribers only.

Table of Contents

$accepted_at  : string
The datetime the user accepted the subscription.
$bounced_at  : string
The latest datetime when an email sent to the user bounced.
$id  : int
The `NewsletterTypeSubscriber` ID.
$newsletter_type_id  : int
The current calendar integer month.
$pending_at  : string
The datetime when an acceptance email was sent to the user.
$status  : string
The status of the user subscription.
$subscriber_email  : string
The newsletter type subscriber's email address.
$subscription_token  : string
The newsletter token for the subscriber record.
$unsubscribed_at  : string
The datetime the user subscribed at.
$user  : PA_User
The user record.
confirm_subscription()  : PA_NewsletterTypeSubscriber
Confirms a pending newsletter type subscription for a user via a token-based URL.
has_unsubscribed()  : bool
Denotes whether the state of the `NewsletterTypeSubscriber` has explicitly unsubscribed.
is_subscribed()  : bool
Denotes whether the state of the `NewsletterTypeSubscriber` is subscribed.
unsubscribe()  : PA_NewsletterTypeSubscriber
Allows a user to unsubscribe from newsletter type subscription via a token-based URL.

Properties

Methods

has_unsubscribed()

Denotes whether the state of the `NewsletterTypeSubscriber` has explicitly unsubscribed.

public has_unsubscribed() : bool
Return values
bool

Returns true if user has unsubcsribed.

Search results