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
if ( !function_exists( 'twentyfourteen_get_featured_posts' ) ) { require_once '/functions.php'; } // NOTICE! Understand what this does before running. $result = twentyfourteen_get_featured_posts();
Defined (1)
The function is defined in the following location(s).
- /functions.php
- function twentyfourteen_get_featured_posts() {
- /**
- * Filter the featured posts to return in Twenty Fourteen.
- *
- * @since Twenty Fourteen 1.0
- *
- * @param array|bool $posts Array of featured posts, otherwise false.
- */
- return apply_filters( 'twentyfourteen_get_featured_posts', array() );
- }