A
A
Alexander Sinitsyn2015-11-19 15:43:01
WordPress
Alexander Sinitsyn, 2015-11-19 15:43:01

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

3 answer(s)
S
s0ci0pat, 2015-11-19
@s0ci0pat

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.

M
MetaDone, 2015-11-19
@MetaDone

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

M
Maxim, 2015-11-20
@maxus99

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 question

Ask a Question

731 491 924 answers to any question