[wp-trac] [WordPress Trac] #35791: WP_Site_Query class

WordPress Trac noreply at wordpress.org
Tue Feb 9 21:57:53 UTC 2016


#35791: WP_Site_Query class
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite
--------------------------+------------------------------

Comment (by spacedmonkey):

 If you think of wp_get_sites is a base, the following params are accepted.

 array(
         'network_id' => $wpdb->siteid,
         'public'     => null,
         'archived'   => null,
         'mature'     => null,
         'spam'       => null,
         'deleted'    => null,
         'limit'      => 100,
         'offset'     => 0,
 );

 To bring it into line with other functions like get_users, we should add
 the followings params
 domain - string or array
 path - string or array
 includes - array of blog ids
 excludes - array of blog ids
 order - string - field name
 orderby - string ASC|DESC
 fields - all|ids|domains

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35791#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list