You are here

public static function ShareaholicUtilities::site_url in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 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

ShareaholicUtilities

Code

public static function site_url() {
  return preg_replace('/https?:\\/\\//', '', $GLOBALS['base_url']);
}