Title: Intelligent delivery
Last modified: February 8, 2018

---

# Intelligent delivery

 *  Resolved [Sevil Yilmaz](https://wordpress.org/support/users/sevilyilmaz/)
 * (@sevilyilmaz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/intelligent-delivery/)
 * Thank you providing this plugin.
 * Is there a way to set the delivery as Intelligent delivery after a post is published,
   instead of sending them immediately?
 * Regards,
    Sevil

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [OneSignal Push Notifications](https://wordpress.org/support/users/onesignal/)
 * (@onesignal)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-9978747)
 * Hi Sevil,
 * Our plugin doesn’t provide an option to do this in the configuration tab, but
   this can be done with a bit of PHP code. Please see [https://documentation.onesignal.com/docs/web-push-wordpress-faq#section-customizing-wordpress-plugin-behavior](https://documentation.onesignal.com/docs/web-push-wordpress-faq#section-customizing-wordpress-plugin-behavior)
   and [https://documentation.onesignal.com/docs/web-push-wordpress-faq#section-onesignal_send_notification-filter](https://documentation.onesignal.com/docs/web-push-wordpress-faq#section-onesignal_send_notification-filter),
   and [https://documentation.onesignal.com/v5.0/reference#section-delivery](https://documentation.onesignal.com/v5.0/reference#section-delivery).
 * You will want to use:
 * $fields[‘delayed_option’] = ‘last-active’;
 *  Thread Starter [Sevil Yilmaz](https://wordpress.org/support/users/sevilyilmaz/)
 * (@sevilyilmaz)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-10045836)
 * Sorry for the late reply.
 * Thank you for the detailed answer. It was fairly easy to do that.
 *  [Martino Hugo](https://wordpress.org/support/users/martinohugo/)
 * (@martinohugo)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-10616936)
 * Hi [@sevilyilmaz](https://wordpress.org/support/users/sevilyilmaz/)
 * How to custom it, please help me.
 *  Thread Starter [Sevil Yilmaz](https://wordpress.org/support/users/sevilyilmaz/)
 * (@sevilyilmaz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-10619216)
 * Hi [@martinohugo](https://wordpress.org/support/users/martinohugo/),
 * I added this block to the functions.php in the theme folder:
 *     ```
       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;
       }
       ```
   
 * Before using this code snippet please refer the links that the author shared
 *  [Martino Hugo](https://wordpress.org/support/users/martinohugo/)
 * (@martinohugo)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-10619561)
 * Hi [@sevilyilmaz](https://wordpress.org/support/users/sevilyilmaz/)
 * Thanks you very much

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Intelligent delivery’ is closed to new replies.

 * ![](https://ps.w.org/onesignal-free-web-push-notifications/assets/icon.svg?rev
   =3003897)
 * [OneSignal - Web Push Notifications](https://wordpress.org/plugins/onesignal-free-web-push-notifications/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/onesignal-free-web-push-notifications/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/onesignal-free-web-push-notifications/)
 * [Active Topics](https://wordpress.org/support/plugin/onesignal-free-web-push-notifications/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/onesignal-free-web-push-notifications/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/onesignal-free-web-push-notifications/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Martino Hugo](https://wordpress.org/support/users/martinohugo/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/intelligent-delivery/#post-10619561)
 * Status: resolved