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.
- $2_60_1000 = apply_filters( 'bfln_ajax_interval', $2_60_1000 );
- if ( !empty( $2_60_1000 ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bfln_ajax_interval callback
- function filter_bfln_ajax_interval( $2_60_1000 ) {
- // make filter magic happen here...
- return $2_60_1000;
- };
- // add the filter
- add_filter( 'bfln_ajax_interval', 'filter_bfln_ajax_interval', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $time = apply_filters( 'bfln_ajax_interval', 2*60*1000 );
- $time = apply_filters( 'bfln_ajax_interval', 2*60*1000 );