Advertisement
Guest User

Reduce Ajax Request Interval for BP Desktop Notification

a guest
May 8th, 2015
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2. add_filter( 'dn_js_interval', 'recude_load_for_desktop_notifications' );
  3. function recude_load_for_desktop_notifications( $interval ){
  4.     //Execute the ajax request every 30 seconds.
  5.     return 30000;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement