You appear to be a bot. Output may be restricted
Description
Return the domain for the siteWe obtain this either from the oik settings field "domain" OR WordPress "siteurl" setting.
Usage
$string = bw_get_domain();
Parameters
Returns
string the domain for the siteTO DO
Should we use network_site_url() to obtain siteurl? When we get siteurl we need to remove the scheme part. We probably need to do this with domain as well… belt and bracesSource
File name: oik/shortcodes/oik-link.phpLines:
1 to 8 of 8
function bw_get_domain() { $domain = bw_get_option( "domain" ); if ( !$domain ) { $domain = get_option( "siteurl" ); $domain = trim_scheme( $domain ); } return( $domain ); }View on GitHub View on Trac