the_neverending_home_page_theme_support

Check whether the current theme is infinite-scroll aware.

Description

the_neverending_home_page_theme_support(); 

If so, include the files which add theme support.


Usage

  1. if ( !function_exists( 'the_neverending_home_page_theme_support' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/infinite-scroll/infinity.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_neverending_home_page_theme_support(); 
  7.  

Defined (1)

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

/modules/infinite-scroll/infinity.php  
  1. function the_neverending_home_page_theme_support() { 
  2. $theme_name = get_stylesheet(); 
  3.  
  4. /** 
  5. * Filter the path to the Infinite Scroll compatibility file. 
  6. * @module infinite-scroll 
  7. * @since 2.0.0 
  8. * @param string $str IS compatibility file path. 
  9. * @param string $theme_name Theme name. 
  10. */ 
  11. $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/themes/{$theme_name}.php", $theme_name ); 
  12.  
  13. if ( is_readable( $customization_file ) ) 
  14. require_once( $customization_file );