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 BitIntegrations'; } /** * 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 ' '; } }