• Resolved islandfox

    (@mpaino)


    Hi, i red all the documentations about the plugin but i didn’t find what i need.
    Is possible to hide, for security reason the version of the plugin, maybe adding a filter ?

    Please let me know
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @mpaino,

    Greetings from CookieYes!

    Please try the below code snippet and let us know the status:

    function cli_cookie_law_info_script_tag($tag, $handle, $src) {
    
        if ($handle === 'cookie-law-info') {
            // Remove the version parameter from the src
            $src = remove_query_arg('ver', $src);
            
            $tag = '<script src="' . esc_url($src) . '" id="cookie-law-info-js"></script>';
        }
    
        return $tag;
    }
    
    add_filter('script_loader_tag', 'cli_cookie_law_info_script_tag', 10, 3);
    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @mpaino,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide plugin version (Versione 3.1.8)’ is closed to new replies.