• I’m tired of the WordPress update notification, so I want to change the version information to 10.8 instead of 5.8, so I won’t see the update notification until the 10.8 version is released. How can I do that? What I want is this: I want to show a higher version by making the version note in the file in which WordPress version information is saved, instead of 5.8, instead of 5.8. I am just asking for your help in this matter. I’m not asking about plugins that turn off updates or other code like it. I just want to change the number from 5.8 to 10.8, that’s all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • This version string is stored in this file. However, I would strongly recommend against modifying it as various plugins/themes and core will use that value for version checks which may have some unexpected results for you, and modifying core files is generally a bad practice.

    Keep in mind that this means you would not be notified of important and critical security issues. At 3 core releases per year, making the change you request would mean no WordPress update notifications for around 15 years. Running an insecure WordPress version will put your website and visitors at risk. Managing updates is part of the role of a website administrator. If you are finding this challenging or tedious, then maybe consider managed hosting.

    I’d add some kind of ‘funny text’ (ie. For the Chromebook) to the ‘number’ just to fool the script kiddies for a moment and to act as a reminder of sorts when you do decide to repair that properly. That’s more for sleepy old Geezers like me, really.

    You’ll also want to make a rem statement in the actual code to make it easier to find the spot. I’m all for modding code to make WP work but ‘good practices first’ when you do things like that.

    Moderator Yui

    (@fierevere)

    永子

    // hide update notifications
    function remove_core_updates(){
    global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
    }
    add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
    add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
    add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes

    You can use the following code snippet to disable update notifications.
    Changing WP versions for that is … ridiculous

    PS: disabling updates will expose your site to various security risks, it is not advised to disable updates at all and in any way.

    Thread Starter Zeliha Canderengul

    (@zelihacanderengul)

    Thanks everyone. I wanted to change the update version for an important reason. I’ve been managing a website for a long time and I have Adsense ads on my website. According to my experience, when an update alert is active on the website, Adsense per click ad revenue decreases. Until I noticed the update warning, Adsense revenue is decreasing considerably. I replaced the plugins and the theme with higher version information via css files. So I don’t get an update alert. But I couldn’t stop the WordPress files from updating. That’s why I want to make the version information 10.8. If you have an Adsense account, if you carefully examine what I have said, you will see that your income also decreases until the update notification is closed.`

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I want to change wordpress version info to 10.8 instead of 5.8’ is closed to new replies.