Class EPL_Contact
EPL_Contact Class
Package: EPL\Classes\Contact
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 3.0.0
Located at lib/includes/class-epl-contact.php
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 3.0.0
Located at lib/includes/class-epl-contact.php
Methods summary
public
|
|
public
mixed
|
|
public
boolean|integer
|
|
public
mixed
|
#
get_contact_by( string $field = 'id', mixed $value = 0 )
Retrieves a single contact from the database |
public
mixed|WP_Error
|
|
public
mixed
|
|
public
boolean|WP_Post
|
|
public
boolean
|
|
public
boolean
|
#
attach_listing( integer $listing_id = 0 )
Attach listing to the contact then triggers increasing stats |
public
boolean
|
#
remove_listing( integer $listing_id = 0 )
Remove a listing from this contact, then triggers reducing stats |
public
|
|
public
|
|
public
array
|
|
public
integer
|
|
public
string|boolean
|
|
public
|
|
public
boolean|integer
|
|
public
mixed
|
|
public
mixed
|
|
public static
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
Properties summary
public
integer
|
$ID
The contact ID |
#
0
|
public
integer
|
$id
The contact ID Fallback |
#
0
|
public
integer
|
$listing_count
The contact's listing count |
#
0
|
public
string
|
$email
The contact's email |
|
public
string
|
$name
The contact's name |
|
public
string
|
$date_created
The contact's creation date |
|
public
string
|
$background_info
The contact's background info |
|
public
string
|
$type
The contact's type |
|
public
string
|
$heading
The contact's heading |
|
public
string
|
$listing_ids
The listing IDs associated with the contact |
|
public
string
|
$notes
Contact Notes |