public static function ShareaholicUtilities::has_tos_and_apikey in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 utilities.php \ShareaholicUtilities::has_tos_and_apikey()
Check if the installation has accepted ToS and we created an apikey
3 calls to ShareaholicUtilities::has_tos_and_apikey()
- ShareaholicPublic::insert_script_tag in ./
public.php - Inserts the script code snippet into the head of the public pages of the site if they have accepted ToS and have apikey
- ShareaholicPublic::set_xua_compatible_header in ./
public.php - Inserts the xua-compatible header if the user has accepted ToS and has API key
- shareaholic_advanced_settings_form_submit in includes/
shareaholic_advanced_settings_form.php
File
- ./
utilities.php, line 523
Class
Code
public static function has_tos_and_apikey() {
return ShareaholicUtilities::has_accepted_terms_of_service() && ShareaholicUtilities::get_option('api_key');
}