Created
July 26, 2014 00:12
-
-
Save bappi-d-great/142808684afcf1c98472 to your computer and use it in GitHub Desktop.
WPMU Domain Mapping - Get all domain as an array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_all_domains(){ | |
return $wpdb->get_results( 'SELECT Distinct domain from wp_domain_mapping', 'ARRAY_A' ); | |
} | |
// $domains = get_all_domains() should return array of domains |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment