minileven_show_featured_images

Filter where featured images are displayed in the Mobile Theme.

Description

apply_filters( 'minileven_show_featured_images', (bool) $enabled ); 

By setting $enabled to true or false using functions like is_home() or is_archive(), you can control where featured images are be displayed.

Parameters (1)

0. $enabled (bool)
True if featured images should be displayed, false if not.

Usage

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

Defined (1)

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

/modules/minileven/theme/pub/minileven/functions.php  
  1. return (bool) apply_filters( 'minileven_show_featured_images', $enabled );