what I usually do in that case is change the version string in the main PHP-file’s header B-)
Thread Starter
Amir
(@repenter)
Thanks a lot Franc, I used this trick and it was successful:
[ Moderated: Link redacted. ]
-
This reply was modified 8 years, 8 months ago by
t-p.
Moderator
t-p
(@t-p)
Side note to @repenter,
Please show your “trick” here so others can benefit. Completely here, do not send people to your site as a reference. Thanks.
Thread Starter
Amir
(@repenter)
Ah sure dear moderator, I thought I need to give credit to the website I used. Sorry about that.
Here is the code anyway for disabling a plugin’s update. You need to put this in functions.php:
This is a sample code for akismet plugin.
/* Function which remove Plugin Update Notices β Askimet*/
function disable_plugin_updates( $value ) {
unset( $value->response['akismet/akismet.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
that indeed is a nice trick Amir, thanks!