title = __('Bit Integrations', 'notificationx');
$this->module_title = __('Bit Integrations', 'notificationx');
}
/**
* Get data for BitIntegrations Extension.
*
* @param array $args Settings arguments.
* @return array
*/
public function get_data( $args = array() ){
return 'Hello From Bit Integrations';
}
/**
* Error message if BitIntegrations is disabled.
*
* @param array $messages
* @return array
*/
public function source_error_message($messages) {
if (!$this->class_exists()) {
$url = admin_url('plugin-install.php?s=bit+integrations&tab=search&type=term');
$messages[$this->id] = [
'message' => sprintf(
'%s %s %s',
__('You have to install', 'notificationx'),
$url,
__('Bit Integrations', 'notificationx'),
__('plugin first.', 'notificationx')
),
'html' => true,
'type' => 'error',
'rules' => Rules::is('source', $this->id),
];
}
return $messages;
}
public function doc(){
return '
- ' . __('Field Name:', 'notificationx') . ' ' . __('Field Key', 'notificationx') . '
- ' . __('Full Name:', 'notificationx') . ' name
- ' . __('First Name:', 'notificationx') . ' first_name
- ' . __('Last Name:', 'notificationx') . ' last_name
- ' . __('Sales Count:', 'notificationx') . ' sales_count
- ' . __('Customer Email:', 'notificationx') . ' email
- ' . __('Title, Product Title:', 'notificationx') . ' title
- ' . __('Anonymous Title, Product:', 'notificationx') . ' anonymous_title
- ' . __('Definite Time:', 'notificationx') . ' timestamp
- ' . __('Sometime:', 'notificationx') . ' sometime
- ' . __('In last 1 day:', 'notificationx') . ' 1day
- ' . __('In last 7 days:', 'notificationx') . ' 7days
- ' . __('In last 30 days:', 'notificationx') . ' 30days
- ' . __('City:', 'notificationx') . ' city
- ' . __('Country:', 'notificationx') . ' country
- ' . __('City,Country:', 'notificationx') . ' city_country
';
}
}