infinite_scroll_customization_file

This filter is already documented in modules/infinite-scroll/infinity.php.

Description

apply_filters( 'infinite_scroll_customization_file', $dirname, (unknown) $theme_stylesheet ); 

Parameters (2)

0. $dirname
The dirname.
1. $theme_stylesheet (unknown)
The theme stylesheet.

Usage

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

Defined (3)

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

/modules/theme-tools/infinite-scroll.php  
  1. $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); 
/modules/infinite-scroll/infinity.php  
  1. $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/themes/{$theme_name}.php", $theme_name ); 
/modules/infinite-scroll.php  
  1. $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] );