wplecturer.com
0 votes
17 views

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

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 (67.0k points)

1.7k questions

1.7k answers

81.7k users

3 Online Users
1 Member 2 Guest
Online Members
Today Visits : 35
Yesterday Visits : 1272
Total Visits : 1895722
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.
1,653 questions
1,658 answers
81,737 users
@ 2022 V Katsanioti ,All rights reserved