Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6003921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:11:23+00:00 2026-05-23T01:11:23+00:00

I am having a problem where I want to stop a particular function from

  • 0

I am having a problem where I want to stop a particular function from executing. This function is located on another plugin which I can’t change the core files so I am wondering if I can stop a specific function from that file from executing?

So for example that function is testFunction(); and I want to stop that later in the code maybe in on document ready…etc.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:11:24+00:00Added an answer on May 23, 2026 at 1:11 am

    Is the function public (as opposed to private via a closure)? And, does it need to be operational at all for things to work, or can you chop it out in total and be fine? If the latter, you can replace the function with a new one:

    otherLibrary.testFunction = function(){};
    

    If you want to disable it for a temporary amount of time, you can store the function in a temporary variable, and restore it later:

    var removedFunc = otherLibrary.testFunction;
    otherLibrary.testFunction = function(){};
    
    // do something, time passes, whatever...
    
    otherLibrary.testFunction = removedFunc;
    

    Or, if you want to be able to toggle it, a slight variation:

    var removedFunc = otherLibrary.testFunction;
    var testFunctionEnabled = true;
    otherLibrary.textFunction = function(){
        if(testFunctionEnabled){
            removedFunc.call(this, arguments);
        }
    };
    

    And then just set testFunctionEnabled as you need to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with curl_multi_* , I want to create a class /
I am having a problem with selecting a certain child node. What I want
Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
The problem I'm having with writing a web application architecture is that I want
I want to remove if-statements from my View, but I'm having problems with predefined
I am having some strange problems loading content from another XHTML page via jQuery.
I'm having a problem: I want to resize and watermark an image in CodeIgniter.
I want to know how can I speed up RSA 7.5( which is an
I am having a peculiar problem with the order in which TextBox controls are
I want to fix this problem with the z-index of a draggable div. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.