WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/02/2014 08:45:07 PM (6 years ago)
Author:
wonderboymusic
Message:

Add an action, pre_get_users, in WP_User_Query::prepare_query().

Props rmccue.
Fixes #29084.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r29221 r29363  
    523523            ) );
    524524        }
     525
     526        /**
     527         * Fires before the WP_User_Query has been parsed.
     528         *
     529         * The passed WP_User_Query object contains the query variables, not
     530         * yet passed into SQL.
     531         *
     532         * @since 4.0.0
     533         *
     534         * @param WP_User_Query $this The current WP_User_Query instance,
     535         *                            passed by reference.
     536         */
     537        do_action( 'pre_get_users', $this );
    525538
    526539        $qv =& $this->query_vars;
Note: See TracChangeset for help on using the changeset viewer.