Make WordPress Core

Changeset 37899


Ignore:
Timestamp:
06/28/2016 10:25:33 PM (7 years ago)
Author:
jeremyfelt
Message:

Multisite: Add a ms_sites_list_table_query_args filter to WP_MS_Sites_List_Table.

This allows a developer to filter the arguments used to query sites during the prepare_items() method.

Props flixos90.
Fixes #26580.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r37739 r37899  
    158158            $args['no_found_rows'] = false;
    159159        }
     160
     161        /**
     162         * Filters the arguments for the site query in the sites list table.
     163         *
     164         * @since 4.6.0
     165         *
     166         * @param array $args An array of get_sites() arguments.
     167         */
     168        $args = apply_filters( 'ms_sites_list_table_query_args', $args );
    160169
    161170        $_sites = get_sites( $args );
Note: See TracChangeset for help on using the changeset viewer.