Solved

jquery script modification question

Posted on 2013-12-04
3
299 Views
Last Modified: 2013-12-08
I'm working on a wordpress site that's running a plugin that uses a purpose built jquery script stored in the plugin folder.  This means that when the plugin is updated any edits I make to that script will be overriden.

Basically its a form field validation script and I want to add a few lines to it.

How can I override the plugin script with a new one that will survive plugin updates?..

I was thinking of creating a new script to include the old stuff and my changes and registering it & enqueueing properly from functions.php

before I do I thought I'd check with the experts to see if there is a well known solution that works better.

thanks
0
Comment
Question by:tf2012
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39696441
The danger you have in doing that is that an update the original might be to remain compatible with new releases of other components.  Your custom version; lacking those updates may break as a result, or break something else.  You also need to consider that some updates are to fix security holes and you could be left exposed.

So you just need to proceed with caution knowing that you might need to patch your version in the future.

Cd&
0
 
LVL 1

Author Closing Comment

by:tf2012
ID: 39704310
ok great thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question