WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#17573 closed feature request (wontfix)

More filters in user.php

Reported by: hughwillfayle Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: Cc:
PR Number:

Description

In the wp-includes/user.php there should be some more filters in the function prepare_query().

e.G. before the line

$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );

this

$search_columns = apply_filters( 'user_list_search_columns', $search_columns );
$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );

Also, in the sorting block:

$orderby = apply_filters( 'user_list_search_order_by', $orderby );

Change History (4)

#1 @hughwillfayle
8 years ago

  • Type changed from enhancement to feature request

#2 @hughwillfayle
8 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#3 @scribu
8 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#4 @scribu
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

All parts of the query can be changed through the 'pre_user_query' action.

Note: See TracTickets for help on using tickets.