posts_request_ids хук-фильтр . WP 3.4.0
Filters the Post IDs SQL request before sending.
Использование
add_filter( 'posts_request_ids', 'filter_function_name_649', 10, 2 ); function filter_function_name_649( $request, $this ){ // filter... return $request; }
- $request(строка)
- The post ID request.
- $this(WP_Query)
- The WP_Query instance.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
posts_request_ids
wp-includes/class-wp-query.php 3014
$this->request = apply_filters( 'posts_request_ids', $this->request, $this );