Forums

[resolved] How to remove callout with number of plugins requiring upgrading from admin men? (11 posts)

  1. soumyadip
    Member
    Posted 2 years ago #

    Could you please tell me how to remove the callout with 'number of plugins requiring upgrading' from admin menu? Thanks a ton.

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    Can you be a little more specific about what you want to do?

    Are you asking how to stop plugins bugging you about upgrading to a newer version?

  3. soumyadip
    Member
    Posted 2 years ago #

    Yeah that's correct and then as the plug-in bugs me to upgrade there is a number in a callout blob next to the 'Plugins' item in the admin menu - and I want to remove that.

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    Well i think the version check is made by checking this row in the options table.
    _transient_update_plugins

    If the version there is lower then the current available one you are asked to update.

    (I think)..

    I think if you modified the above entry and set the versions to higher numbers it would in essence fool WordPress into thinking you're current and upto date with plugins...

    Setting the version to 99.0 or something should be good for some time..

    Assuming it works of course..

    You can modify via phpmyadmin, should take no more then a minute, though backup if in doubt, and be careful with what you change... i'm not taking resposiblity if you mess something up... lol.. ;)

  5. Mark / t31os
    Moderator
    Posted 2 years ago #

    You could also check the plugins that exist and their versions with a small piece of code like so...

    <?php
    $checked_plugins = get_option('_transient_update_plugins');
    $checked = '<h3>Plugins present in plugins folder.</h3>';
    if(is_array($checked_plugins->checked)) {
    	$checked .= '<ul style="list-style:none inside">';
    	foreach ( $checked_plugins->checked as $plugin => $version ) {
    		$checked .= '
    		<li style="padding:5px"><strong>Plugin : </strong>';
    		if(strlen(dirname($plugin)) < 3) $checked .= str_replace('.php','',basename($plugin));
    		else $checked .= dirname($plugin);
    		$checked .= '</li>
    		<li style="padding:5px"><strong>Version : </strong>'.$version.'</li>
    		<li style="height:1px;border-top:1px solid #e6e6e6"></li>
    		';
    	}
    	$checked .= '</ul>';
    }
    print $checked;
    ?>

    This code will essentially grab the option from the database and format it so you can see which plugins are present (installed or not) and their current versions as recorded by WordPress.

    Although i'm pretty sure if you drop that row from the options table WordPress will go ahead and recreate it with the necessary information (though don't quote me on that one).

  6. soumyadip
    Member
    Posted 2 years ago #

    Thanks a ton for that - not sure how to get into wp options though?

  7. Mark / t31os
    Moderator
    Posted 2 years ago #

    Phpmyadmin? If you have CPanel with your host you should have this..

    If not, i can write you something to update/drop the row in options table...

    I'd need to see the output from the code above first though.

  8. soumyadip
    Member
    Posted 2 years ago #

    Is phpmyadmin a plugin that I need to install. Is there any way to do it without the plugin then?

  9. Mark / t31os
    Moderator
    Posted 2 years ago #

    Phpmyadmin is a tool that interacts with mysql databases. If your website is on a linux based pc with Cpanel you'll most likely have this..

    If you have no idea what i'm talking about then it's proberly not a good idea to go fiddling with entries in the database anyway...

    Why don't you just update your plugins?

  10. soumyadip
    Member
    Posted 2 years ago #

    The problem with updating the plugins is that the whole site has been totally customised to look different and updating the plugins will break it.

  11. Mark / t31os
    Moderator
    Posted 2 years ago #

    Why's that? Have you modified the plugins?

    You could copy the plugins in the plugins folder, move the copy somewhere as a backup...

    Update, then copy across the changes you made again... (assuming you did indeed modify plugin code)..

    If you're competent enough to modify plugins and customise them, surely you're also capable of updating and copying code back in?..

    You could as a safety measure take a backup of the site and install it locally (WAMP, XAMP, Uniform Server - or whichever you prefer) then do any update tests there first...

Topic Closed

This topic has been closed to new replies.

About this Topic