Exclude the Cloudflare Turnstile script from being combined in SiteGround Optimizer

Exclude the Cloudflare Turnstile script from being combined in SiteGround Optimizer on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
function js_combine_exclude_external_script( $exclude_list ) {
    $exclude_list[] = 'challenges.cloudflare.com';

    return $exclude_list;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.