W3cubDocs

/WordPress

Featured_Content::pre_get_posts( WP_Query $query )

Exclude featured posts from the home page blog query.

Parameters

$query

(WP_Query) (Required) WP_Query object.

Return

(WP_Query) Possibly-modified WP_Query.

Source

File: wp-content/themes/twentyfourteen/inc/featured-content.php

Changelog

Version Description
Twenty Fourteen 1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/featured_content/pre_get_posts