network_domain_check()

 

File: wp-admin/includes/network.php

function network_domain_check() {
	global $wpdb;

	$sql = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) );
	if ( $wpdb->get_var( $sql ) ) {
		return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" );
	}
	return false;
}

参数:network_domain_check()

(string false)基础域(如果存在网络),否则为false。

{acontent5}{acontent3}

You must log in before being able to contribute a note or feedback.

66.67% (2) 次Google访问
33.33% (1) 次Sogou访问
  • 蜘蛛:Google,2次,更新时间:2019-05-14 20:28:41
  • 蜘蛛:Sogou,1次,更新时间:2019-04-30 22:27:26

参与评论