Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

This may not be the URL you want thoughURL you want though. You may want site_url or the multisite equivalent, network_site_url.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

This may not be the URL you want though. You may want site_url or the multisite equivalent, network_site_url.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

This may not be the URL you want though. You may want site_url or the multisite equivalent, network_site_url.

added 324 characters in body
Source Link
s_ha_dum
  • 65.5k
  • 13
  • 84
  • 174

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

This may not be the URL you want though. You may want site_url or the multisite equivalent, network_site_url.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

This may not be the URL you want though. You may want site_url or the multisite equivalent, network_site_url.

added 415 characters in body
Source Link
s_ha_dum
  • 65.5k
  • 13
  • 84
  • 174

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

Instead of get_option, use home_url which will determine ...

the appropriate protocol, "https" if is_ssl() and "http" otherwise. If the $scheme argument is "http" or "https" the is_ssl() check is overridden.

In fact, network_home_url would be more appropriate since you are talking about Multisite.

Those should return the same value that you are trying the access in your code-- the home option key-- but with the appropriate protocol.

Source Link
s_ha_dum
  • 65.5k
  • 13
  • 84
  • 174
Loading