Site icon Hip-Hop Website Design and Development

What’s the perform to get choices of the guardian web site of a multisite community?

I must set choices of a selected plugin on the guardian web site of a community and use these settings globally to override every web site, except set to false.

Neither get_option() or get_site_option() does the duty. They simply return values relative to the present web site. All of the options I’ve encountered are strategies to make use of database question with $wpdb->get_results()however I determine the mighty WP will need to have a built-in technique to do that activity.

Instance use

code state of affairs (not an precise WP perform)

if( get_parent_site_option('adbanners')['show_banners'] == 1 ) {
  showAds();
}else
if( get_site_option('adbanners')['show_banners'] == 1 ) {
  showAds();
}else{
  // advertisements disabled on this present web site
}

Is there a WP perform to do that with out the direct DB question technique?