featured_content_post_ids

Filter the list of Featured Posts IDs.

Description

apply_filters( 'featured_content_post_ids', $array_featured_ids ); 

Parameters (1)

0. $array_featured_ids
The array featured ids.

Usage

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

Defined (4)

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

/modules/theme-tools/featured-content.php  
  1. apply_filters( 'featured_content_post_ids', (array) $featured_ids ) 
  1. return apply_filters( 'featured_content_post_ids', array() ); 
  1. return apply_filters( 'featured_content_post_ids', array() ); 
  1. return apply_filters( 'featured_content_post_ids', $featured_ids );