Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $number = 0; // 0 returns all
- $args = array( 'number' => $number );
- if ( function_exists( 'get_sites' ) ) {
- $site_objects = get_sites( $args );
- $sites = array();
- foreach ( $site_objects as $site ) {
- $sites[] = array(
- 'blog_id' => $site->blog_id,
- 'domain' => $site->domain,
- 'path' => $site->path,
- 'site_id' => $site->site_id,
- );
- }
- echo '<pre>';
- print_r($sites);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement