Created
January 29, 2020 02:30
-
-
Save tongdaitructuyen/8acd9c9a48a82433251a0293cca9744f to your computer and use it in GitHub Desktop.
[Wordpress] Cấu hình OneSignal theo Intelligent delivery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* BEGIN - Gafaba.com: - [Wordpress] OneSignal Intelligent delivery - functions.php | https://gafaba.com/ | |
add_filter('onesignal_send_notification', 'onesignal_send_notification_filter', 10, 4); | |
function onesignal_send_notification_filter($fields, $new_status, $old_status, $post) | |
{ | |
$fields['delayed_option'] = 'last-active'; | |
return $fields; | |
} | |
//* END - Gafaba.com: - [Wordpress] OneSignal Intelligent delivery - functions.php | https://gafaba.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://gafaba.com/wodpress-cau-hinh-onesignal-theo-intelligent-delivery/