\MainWP\DashboardMainWP_Client_Handler

Class MainWP_Client_Handler

Summary

Methods
Properties
Constants
instance()
get_default_client_fields()
get_mini_default_client_fields()
get_default_contact_fields()
get_mini_default_contact_fields()
get_compatible_tokens()
rest_api_add_client()
get_website_client_tokens_data()
get_client_image_url()
show_notice_existed_contact_emails()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : mixed

Private static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

get_default_client_fields()

get_default_client_fields() 

Get default client fields.

Get default client fields.

get_mini_default_client_fields()

get_mini_default_client_fields() 

Get default client fields.

Get default client fields.

get_default_contact_fields()

get_default_contact_fields() 

Get default contact fields.

Get default contact fields.

get_mini_default_contact_fields()

get_mini_default_contact_fields() 

Get default contact fields.

Get default contact fields.

get_compatible_tokens()

get_compatible_tokens() 

Method get_compatible_tokens().

Get compatible tokens.

rest_api_add_client()

rest_api_add_client(array  $data, boolean  $edit = false) : mixed

Method rest_api_add_client().

Rest API add client.

Parameters

array $data

fields array.

boolean $edit

Is edit.

$data fields. 'client_email'. 'name'. 'client_facebook'. 'client_twitter'. 'client_instagram'. 'client_linkedin'. 'address_1'. 'address_2'. 'city'. 'zip'. 'state'. 'note'. 'selected_sites'. 'client_id'. - to edit client.

Throws

\Exception

Error message.

Returns

mixed —

Results.

get_website_client_tokens_data()

get_website_client_tokens_data(integer  $websiteid = false) : mixed

Method get_website_client_tokens_data()

Get website client tokens.

Parameters

integer $websiteid

Website ID.

Returns

mixed —

$result Result of tokens.

get_client_image_url()

get_client_image_url(string  $image_path) : mixed

Method get_favico_url()

Get Child Site favicon URL.

Parameters

string $image_path

Client image url path.

Returns

mixed —

$full_url Full image URL.

show_notice_existed_contact_emails()

show_notice_existed_contact_emails() 

Method show_notice_existed_contact_emails()