Title: Disable the plugin
Last modified: January 13, 2020

---

# Disable the plugin

 *  Resolved [magedmoh94](https://wordpress.org/support/users/magedmoh94/)
 * (@magedmoh94)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/)
 * Hi There,
 * I’m really happy of the plugin and how its really working fine with all the browsers
   that we have tested for now, but what if we want to disable that ver=1578839895
   that is generated next to every file in the view source.
 * what if we need to make everything to back to normal ?
 * Best Regards

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

 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12324303)
 * Hi [@magedmoh94](https://wordpress.org/support/users/magedmoh94/)
 * You can just deactivate this plugin to back to normal.
 * If you want to remove “?ver” param from CSS/JS files you can activate this plugin
   and add this code to functions.php file:
 *     ```
       prevent_browser_caching( array(
           'assets_version' => false
       ) );
       ```
   
 * Hope it will help.
 * Thank you
 *  Thread Starter [magedmoh94](https://wordpress.org/support/users/magedmoh94/)
 * (@magedmoh94)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12340051)
 * Hi there,
 * First of all sorry for late reply.
 * By applying this snippet everything will return back to normal as if i haven’t
   installed the plugin from the beginning ?
 * Best Regards
 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12344870)
 * Hi,
 * To return back to normal you need to remove prevent_browser_caching function (
   if you use it) and deactivate this plugin. This function just allows you to change“
   ver” param manually (not using configurations in the admin panel).
 * Best Regards,
    Kostya
 *  Thread Starter [magedmoh94](https://wordpress.org/support/users/magedmoh94/)
 * (@magedmoh94)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12345090)
 * Hi,
 * Sorry for asking so much but there is miss understanding.
 * What steps do i need to take to revert everything back to normal and make everyfile
   show its main version. Not the version defined by the plugin ?
 * Step 1: deactivate the plugin.
    Step 2: ?
 * What action else i need to do to reset the ver number defined by ur plugin to
   revert back to the oroginal version number for each file defined by each plugin
   and theme ?
 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12345299)
 * Hi,
 * You just need to deactivate this plugin (only one step). If it does not work 
   it is possible that some other plugin or theme makes changes to the versions 
   of the assets.
 * Best Regards,
    Kostya
 *  Thread Starter [magedmoh94](https://wordpress.org/support/users/magedmoh94/)
 * (@magedmoh94)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12366383)
 * Hi,
 * Thank you for your interest for help you were right.
 * I had a php snippet who does manages the assets but i can’t revert everything
   back to normal even after disabling the php snippet:
 * I have asked before on stackoverflow to hide the version of wordpress, css & 
   javascript files but this result in a bug where when we update the plugins the
   browser couldn’t detect the new updated files so it still the same.
 * below the php snippet code someone helped before here and provided, we need to
   disable its function so we deleted it form the functions.php but the issue is
   still there, the ver= parameter still removed when we try to access the source
   code of the website from the browser, we flushed the cash and tried in icognito
   mode but still the same disabling the php snippet doesn’t make everything to 
   back its normal.
 *     ```
       // remove version from head
       remove_action('wp_head', 'wp_generator');
   
       // remove version from rss
       add_filter('the_generator', '__return_empty_string');
   
       // remove version from scripts and styles
       function shapeSpace_remove_version_scripts_styles($src) {
           if (strpos($src, 'ver=')) {
               $src = remove_query_arg('ver', $src);
           }
           return $src;
       }
       add_filter('style_loader_src', 'shapeSpace_remove_version_scripts_styles', 9999);
       add_filter('script_loader_src', 'shapeSpace_remove_version_scripts_styles', 9999);
       ```
   
 * We need to have the ver= parameter next to each css and javascript file as before
   to test that everything is back to normal then we will activate your plugin.
 * Best Regards
 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12368949)
 * Hi,
 * I recommend searching for “style_loader_src” and “script_loader_src” in your 
   project files and see if there is some filter that can remove “ver” param.
 * Hope it will help.
 * Best Regards,
    Kostya

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

The topic ‘Disable the plugin’ is closed to new replies.

 * ![](https://ps.w.org/prevent-browser-caching/assets/icon-256x256.png?rev=1793665)
 * [Prevent Browser Caching](https://wordpress.org/plugins/prevent-browser-caching/)
 * [Support Threads](https://wordpress.org/support/plugin/prevent-browser-caching/)
 * [Active Topics](https://wordpress.org/support/plugin/prevent-browser-caching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prevent-browser-caching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prevent-browser-caching/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/disable-the-plugin-4/#post-12368949)
 * Status: resolved