Answer the question
In order to leave comments, you need to log in
How to properly add plugin functionality?
There is a plugin that fits 90%, there are no others like it. I would like to add these 10% so as not to write another one from scratch. How to make sure it doesn't update and break changes?
PS: I've been on Wordpress for 3 days, I don't know all the subtleties yet.
Answer the question
In order to leave comments, you need to log in
A functional is a mapping given on an arbitrary set and having a numerical range of values: usually a set of real or complex numbers.
If you want to make it not updated - copy and rename. But still look in the sources for filters and events - it is likely that you will not have to copy it, but you can change the behavior with their help, which will not interfere with the update
Either through the plugin - https://wordpress.org/plugins/block-specific-plugi...
Or using the code in the same plugin or the theme's functions.php
if ( is_admin() ) {
function my0564_filter_plugin_updates( $value ) {
unset( $value->response['post-views-counter/post-views-counter.php'] );
unset( $value->response['wp-favorite-posts/wp-favorite-posts.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'my0564_filter_plugin_updates' );
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question