minileven_show_featured_images

Allow plugins to filter where Featured Images are displayed.

Description

minileven_show_featured_images(); 

Default has Featured Images disabled on single view and pages.


Usage

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

Defined (1)

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

/modules/minileven/theme/pub/minileven/functions.php  
  1. function minileven_show_featured_images() { 
  2. $enabled = ( is_home() || is_search() || is_archive() ) ? true : false; 
  3.  
  4. /** 
  5. * Filter where featured images are displayed in the Mobile Theme. 
  6. * By setting $enabled to true or false using functions like is_home() or 
  7. * is_archive(), you can control where featured images are be displayed. 
  8. * @module minileven 
  9. * @since 3.2.0 
  10. * @param bool $enabled True if featured images should be displayed, false if not. 
  11. */ 
  12. return (bool) apply_filters( 'minileven_show_featured_images', $enabled );