'ids', 'number' => 100, 'offset' => $offset, 'orderby' => 'id', 'order' => 'ASC', ); if ( $network_id ) { $args['network_id'] = $network_id; } /** Site IDs returned by the fields=ids query. * * @var list $ids */ $ids = get_sites( $args ); foreach ( $ids as $blog_id ) { self::on_site( (int) $blog_id, $action ); } $count = count( $ids ); $offset += $count; } while ( 100 === $count ); } }