jetpack_featured_images_should_load

The WordPress Core jetpack featured images should load function.

Description

jetpack_featured_images_should_load(); 

Usage

  1. if ( !function_exists( 'jetpack_featured_images_should_load' ) ) { 
  2. require_once '/modules/theme-tools/content-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_featured_images_should_load(); 
  7.  

Defined (1)

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

/modules/theme-tools/content-options.php  
  1. function jetpack_featured_images_should_load() { 
  2. $opts = jetpack_featured_images_get_settings(); 
  3.  
  4. // If the theme doesn't support archive, post and page or if all the options are ticked and we aren't in the customizer, don't continue. 
  5. if ( ( true !== $opts['archive'] && true !== $opts['post'] && true !== $opts['page'] ) 
  6. || ( 1 === $opts['archive-option'] && 1 === $opts['post-option'] && 1 === $opts['page-option'] && ! is_customize_preview() ) ) { 
  7. return false; 
  8.  
  9. return true;