How to prevent the gap changes when you update Wordpress plugin?

Welcome.

Is there a website for a client where directly in the plugin, I made one change - regarding the layout (add a variable and use for styling).
When upgrading the plugin - change of course demolished. Is there any way that this change is not lost? there are literally 5-6 lines, but they do need me style.
Maybe as somewhere to register that change is always there registered? ))

Yet, he decided that the prohibition to update the plugin.

If you know how to make my changes not communicated during the update prompt.
March 19th 20 at 09:27
2 answers
March 19th 20 at 09:29
No way. To make your plugin based on need. But without updates
Or just deny the update ? ;)

Thank you. - Mylene_Labadie61 commented on March 19th 20 at 09:32
March 19th 20 at 09:31
Take Your upgrade outside of the plugin. If it allows plugin. Ie if its code has hooks that You can attach, then add your changes via the handler hook.
Maybe hooks is Higher and You'll have to get some other piece of code, then see that he was static (i.e. not related to the internal variables of the plugin)
If Your modification concerns styling, it is possible using js to do this without touching the plugin.
Strong Testimonials Plugin. Hook in it is not seen.
In the plugin I set one variable and have added 3 lines of code that work with this variable.
The plugin was updated and changes just came off.

While the best solution I see is to prohibit the update of the plugin. As I did with one other plugin, which also had to climb. - Mylene_Labadie61 commented on March 19th 20 at 09:34
While the best solution I see is to prohibit the update of the plugin. As I did with one other plugin, which also had to climb.
I agree, Although it is fundamentally not true.

For information: the Current version of Your plugin is teeming with hooks. I found the 135 calls to do_action and apply_filters calls 185. Can gently just more code to get in and find the right hook or filter.
I do not insist, but I was. I've added the ability to add individual title and description for the product categories (shop by woocommerce), And mounted All_in_one_SEO allowed to do this only in the PRO version. The result of digging in the code I, like You, also came to the conclusion that it is necessary to add code to the plugin. But the horror as did not want to do that. Having considered in detail the module code, I found the hooks in the function above (earlier in the call stack). The result is a addon that does not interfere with the update. - Jenifer.Ber commented on March 19th 20 at 09:37
The catch is that I'm not a programmer ))) I have a programming knowledge base.

For no matter how much money you could make if you upgrade nothing flew? ) - Mylene_Labadie61 commented on March 19th 20 at 09:40
skinte screenshot of what You changed and in what file - Jenifer.Ber commented on March 19th 20 at 09:43
5ca14032c1205318805373.png

allocated a white marker.
and file functions-template.php - Mylene_Labadie61 commented on March 19th 20 at 09:46
Yes, unfortunately Your solution remains relevant.

The only thing I can recommend is to write in support of the plugin and ask in the trail version to add a filter to filter a variable $output in each section of the case. You can see that for the type "date" the developers of the filter set (see line above case 'category'). Well, when you do to make Your code. - Jenifer.Ber commented on March 19th 20 at 09:49
@Jenifer.Ber, okay, thank you. )) - Mylene_Labadie61 commented on March 19th 20 at 09:52
But !!!!!!
You can add your custom class and using js and css to control styles
admin
5ca15055748ad860917140.jpeg
front
5ca151690632d511034143.jpeg


then in the plugin code is generally not necessary to climb - Jenifer.Ber commented on March 19th 20 at 09:55

Find more questions by tags WordPress