pfeifferNet

Users
in package

Site users functionality.

  • Applies to any person with login credentials.
  • Handles recent posts update email.
Tags
since
1.0.0
since
5.5.0

Inherit standard singleton class.

since
5.9.0

Rename this class from Frontend/Subscriber.

since
5.11.0

Deprecate use of global singleton.

since
6.7.0

Deprecate use of Helper class for post retrieval.

Table of Contents

Properties

$instances  : array<string|int, object>
The array of instances of this class and sub-classes.

Methods

get_instance()  : object
Creates and/or returns the instance of this class.
subscriber_email_update()  : void
Mail notification of new posts to all users.
__construct()  : void
Initialise the class and set its properties.

Properties

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
5.11.0

Methods

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
Return values
object

The instance of this class.

subscriber_email_update()

Mail notification of new posts to all users.

public subscriber_email_update() : void
  • Run as a cron task.
  • Send email if new content since last successfully run.
  • Maintain date of last run in wp_options.
  • Send confirmation email to administrator on success.
Tags
since
1.0.0
since
6.7.0

Deprecate use of Helper class for post retrieval.

uses
Email_New_Content::send()
uses
Email_Sent_Notice::send()
uses
Users::get_by_role()

__construct()

Initialise the class and set its properties.

protected __construct() : void
Tags
since
5.11.0

        
On this page

Search results