public static function ShareaholicUtilities::site_url in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 utilities.php \ShareaholicUtilities::site_url()
Returns the site's url stripped of protocol.
Return value
string
1 call to ShareaholicUtilities::site_url()
- ShareaholicUtilities::get_or_create_api_key in ./
utilities.php - Returns the api key or creates a new one.
File
- ./
utilities.php, line 107
Class
Code
public static function site_url() {
return preg_replace('/https?:\\/\\//', '', $GLOBALS['base_url']);
}