false, 'timeout' => 60 ); $connection = wp_remote_get( $api_url, $params ); if ( is_wp_error( $connection ) ) { $count = $default_count; } else { $_data = json_decode( $connection[ 'body' ], true ); if ( isset( $_data[ 'circledByCount' ] ) ) { $count = (intval( $_data[ 'circledByCount' ] )); set_transient( 'apsc_googlePlus', $count, $cache_period ); } else { $count = $default_count; } } } else { $count = $googlePlus_count; }