twentyfourteen_get_featured_posts

Getter function for Featured Content Plugin.

Description

(array) twentyfourteen_get_featured_posts(); 

Returns (array)

An array of WP_Post objects.


Usage

  1. if ( !function_exists( 'twentyfourteen_get_featured_posts' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfourteen_get_featured_posts(); 
  7.  

Defined (1)

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

/functions.php  
  1. function twentyfourteen_get_featured_posts() { 
  2. /** 
  3. * Filter the featured posts to return in Twenty Fourteen. 
  4. * @since Twenty Fourteen 1.0 
  5. * @param array|bool $posts Array of featured posts, otherwise false. 
  6. */ 
  7. return apply_filters( 'twentyfourteen_get_featured_posts', array() );