Title: Hide version information from source code
Last modified: November 29, 2022

---

# Hide version information from source code

 *  Resolved [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/)
 * Hello there,
 * I’ve been asked to remove version information on the source code and I’ve used
   a plugin to do so but I’ve found that version information about Complianz can
   still be seen in the following script.
 * Is there a way to hide this information?
 *     ```
       <script type='text/javascript' id='cmplz-cookiebanner-js-extra'>
       /* <![CDATA[ */
       var complianz = {"prefix":"cmplz_","user_banner_id":"2","set_cookies":[],"block_ajax_content":"","banner_version":"23","version":"6.3.5","store_consent":"","do_not_track":""(...)};
       /* ]]> */
       </script>
       ```
   
 * thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/#post-16243370)
 * [@emmamiumiu](https://wordpress.org/support/users/emmamiumiu/) This is possible,
   using a snippet like this:
 *     ```
       function cmplz_my_remove_version($output, $obj){
           $output['version'] = '11';//your custom version here
           return $output;
       }
       add_filter( 'cmplz_cookiebanner_settings_front_end', 'cmplz_my_remove_version', 10, 2 );
       ```
   
 * Please note that the version is used to check if the localstorage for users needs
   to be cleared. A possible solution is to use a hash of the cmplz_version constant
   or something like ’10.’.cmplz_version
    -  This reply was modified 3 years, 6 months ago by [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/).
 *  Thread Starter [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/#post-16246400)
 * [@rogierlankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Thank you so much for your quick answer.
 * Do you mean that i shouldn’t leave it empty?
 * Sorry i didn’t understand the
 * > use a hash of the cmplz_version constant or something like ’10.’.cmplz_version
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/#post-16246565)
 * Yes, preferably it’s not empty. Something like:
 * `$output['version'] = '10'.cmplz_version;`
 * A hash is probably not necessary, but can be created like this:
 * `password_hash(cmplz_version, PASSWORD_DEFAULT);`
 *  Thread Starter [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/#post-16253424)
 * [@rogierlankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Got it!
    Thank you so much for your quick and simple answer!
 * Have a very nice day,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide version information from source code’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [script tag](https://wordpress.org/support/topic-tag/script-tag/)

 * 4 replies
 * 2 participants
 * Last reply from: [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/hide-version-information-from-source-code/#post-16253424)
 * Status: resolved