Solved

jquery script modification question

Posted on 2013-12-04
3
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

691 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