pfeifferNet

Users
in package

Extended user information.

Adds field to capture member image id using WP media selector. Adds additional contact methods.

Tags
since
1.0.0
since
5.5.0

Inherit standard singleton class.

since
5.8.0

Uses refactored media selector.

since
5.11.0

Deprecated global singleton.

Table of Contents

Constants

ABOUT_IMAGE_KEY  = 'psite_about_image'
The user image meta key name.
MEDIA_FIELD_NAME  = 'pnet_image_id'
The media selector field name attribute.
PROFILE_OPTIONS_CONTAINER  = 'table-user-profile-options.php'
Profile options container partial.

Properties

$instances  : array<string|int, object>
The array of instances of this class and sub-classes.
$media_selector  : Media_Selector
The instance of the Media_Selector class.
$profile_options_container  : string
Fully qualified path to profile options container.

Methods

additional_fields()  : void
Show additional user fields on profile page.
get_instance()  : object
Creates and/or returns the instance of this class.
revise_contact_methods()  : array<string|int, mixed>
Register new contact methods.
update_extra_profile_fields()  : void
Update the additional profile fields.
__construct()  : void
Initialise the class and set its properties.

Constants

ABOUT_IMAGE_KEY

The user image meta key name.

protected string ABOUT_IMAGE_KEY = 'psite_about_image'
Tags
since
5.3.0

MEDIA_FIELD_NAME

The media selector field name attribute.

protected string MEDIA_FIELD_NAME = 'pnet_image_id'
Tags
since
5.8.0

PROFILE_OPTIONS_CONTAINER

Profile options container partial.

protected string PROFILE_OPTIONS_CONTAINER = 'table-user-profile-options.php'
Tags
since
5.3.0

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

$profile_options_container

Fully qualified path to profile options container.

protected string $profile_options_container
Tags
since
5.3.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.

revise_contact_methods()

Register new contact methods.

public revise_contact_methods(array<string|int, mixed> $methods) : array<string|int, mixed>
Parameters
$methods : array<string|int, mixed>

Array of contact methods and their labels.

Tags
since
1.0.0
link
https://developer.wordpress.org/reference/hooks/user_contactmethods/
Return values
array<string|int, mixed>

The modified contact methods.

__construct()

Initialise the class and set its properties.

protected __construct() : void
Tags
since
1.0.0
uses
Media_Selector

        
On this page

Search results