jetpack_can_activate_infinite_scroll

Prevent IS from being activated if theme doesn't support it.

Description

jetpack_can_activate_infinite_scroll(); 

Usage

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

Defined (1)

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

/modules/theme-tools/infinite-scroll.php  
  1. function jetpack_can_activate_infinite_scroll() { 
  2. return (bool) current_theme_supports( 'infinite-scroll' );