bfln_ajax_interval

The time interval : after each interval an ajax request to check for new notification is triggered.

Description

apply_filters( 'bfln_ajax_interval', _60_1000 ); 

Default is 2 minutes : 2*60*1000: in milliseconds If you want change 2 minutes to something else, use the filter

Parameters (1)

0. $2_60_1000
The 2 60 1000.

Usage

To run the hook, copy the example below.
  1. $2_60_1000 = apply_filters( 'bfln_ajax_interval', $2_60_1000 ); 
  2.  
  3. if ( !empty( $2_60_1000 ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bfln_ajax_interval callback 
  2. function filter_bfln_ajax_interval( $2_60_1000 ) { 
  3. // make filter magic happen here... 
  4. return $2_60_1000
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bfln_ajax_interval', 'filter_bfln_ajax_interval', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bfln_ajax_interval', 'filter_bfln_ajax_interval', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/bp-fb-like-notification.php  
  1. $time = apply_filters( 'bfln_ajax_interval', 2*60*1000 ); 
  1. $time = apply_filters( 'bfln_ajax_interval', 2*60*1000 );