title = __('Custom Notification', 'notificationx'); $this->module_title = __('Custom Notification', 'notificationx'); } /** * Get data for CustomNotification Extension. * * @param array $args Settings arguments. * @return array */ public function get_data( $args = array() ){ return 'Hello From Custom Notification'; } public function supported_themes() { $custom = []; $custom['sales_count'] = $this->get_themes_for_type('conversions_count'); $custom['conversions'] = $this->get_themes_for_type('conversions'); $custom['maps_theme'] = $this->get_themes_for_type('maps_theme'); $custom['comments'] = $this->get_themes_for_type('comments'); $custom['reviews'] = $this->get_themes_for_type('reviews'); $custom['stats'] = $this->get_themes_for_type('download_stats'); $custom['subs'] = $this->get_themes_for_type('email_subscription'); return $custom; } public function get_themes_for_type($type) { $conversions_count = Conversions::get_instance()->conversions_count; $maps_theme = array('conversions_maps_theme', 'conversions_conv-theme-six', 'comments_maps_theme', 'email_subscription_maps_theme'); if ($type == 'conversions_count') return $conversions_count; if ($type == 'maps_theme') { return $maps_theme; } $themes = ExtensionFactory::get_instance()->get_themes_for_type($type); if ($type == 'conversions') { $themes = array_values(array_diff($themes, $conversions_count)); } $themes = array_values(array_diff($themes, $maps_theme)); return $themes; } public function doc(){ /* translators: %1$s: documentation link URL, %2$s: video tutorial link URL, %3$s: Display Custom Notification Alerts link URL */ return sprintf(__('

You can make custom notification for its all types of campaign. For further assistance, check out our step by step documentation.

🎦 Watch video tutorial to learn quickly

Recommended Blog:

🔥 How to Display Custom Notification Alerts On Your Website Using NotificationX

', 'notificationx'), 'https://notificationx.com/docs/custom-notification/', 'https://www.youtube.com/watch?v=OuTmDZ0_TEw', 'https://wpdeveloper.com/custom-notificationx-alert-fomo/' ); } }