Solved

jquery script modification question

Posted on 2013-12-04
3
279 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to dynamically set the form action using jQuery.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now