posts_request_ids WordPress Filter Hook

This hook is used to request the IDs of all posts. It is useful for doing things like getting a list of all post IDs for a custom post type.

apply_filters( 'posts_request_ids', string $request, WP_Query $query ) #

Filters the Post IDs SQL request before sending.


Parameters

$request

(string)The post ID request.

$query

(WP_Query)The WP_Query instance.


Top ↑

Source

File: wp-includes/class-wp-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More