diff --git a/v3/onesignal-notification.php b/v3/onesignal-notification.php index 1eef7aa..4032484 100644 --- a/v3/onesignal-notification.php +++ b/v3/onesignal-notification.php @@ -71,7 +71,7 @@ function onesignal_create_notification($post, $notification_options = array()) 'headings' => array('en' => $title), 'contents' => array('en' => $excerpt), 'included_segments' => array($segment), - 'web_push_topic' => str_replace(' ', '-', strtolower($segment)), + 'web_push_topic' => str_replace(' ', '-', strtolower($content)), 'isAnyWeb' => true, )), );