2.4k questions

2.4k answers

94.1k users

8 Online Users
0 Member 8 Guest
Today Visits : 1511
Yesterday Visits : 1590
Total Visits : 2290547

Categories

Notice

Dear All, These are my answers from Quora and primarily Google; please check the answer and from others sites; the answers are free and without any liability.To make a decision, write down all of the positives and negatives on a piece of paper.Thank you,

Elias Katsaniotis, MSc

Information

Viktoria Katsanioti,

Kaliningrad,

Russia,

matizegr@yahoo.com

0 votes
84 views

How can I stop Contact Form 7 from being updated? using function.php
in WordPress by (95.0k points)

1 Answer

0 votes

From the link, I find a piece of code that implements the task.WordPress - Disable specific plugin update checkWordPress - Disable specific plugin update check. GitHub Gist: instantly share code, notes, and snippets.

https://gist.github.com/rniswonger/ee1b30e5fd3693bb5f92fbcfabe1654d

/**

* Prevent update notification for plugin

Disable updates for plugin in WordPress

* Place in theme functions.php or at bottom of wp-config.php

*/

function disable_plugin_updates( $value ) {

if ( isset($value) && is_object($value) ) {

if ( isset( $value->response['plugin-folder/plugin.php'] ) ) {

unset( $value->response['plugin-folder/plugin.php'] );

}

}

return $value;

}

add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );

by (95.0k points)
...