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 6707165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:36:24+00:00 2026-05-26T07:36:24+00:00

I am running SQL commands and when there is an error I want to

  • 0

I am running SQL commands and when there is an error I want to deactivate my plugin. Do I do that with wp_die or is there some other preferred method?

  • 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-26T07:36:25+00:00Added an answer on May 26, 2026 at 7:36 am

    My understanding is that plugin activation/deactivation is controlled by the wp_options table in the DB.

    You might consider a second MySQL call that deactivates the specific plugin. You can get all active plugins using this:

    SELECT * FROM wp_options WHERE option_name = 'active_plugins';
    

    You can update the list with something like this:

    UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';
    

    Obviously, you’d want to modify this to target the specific plugin.

    I saw this method used here, in which the author is describing how to deactivate ALL plugins via a MySQL query. Hope this helps.

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

Sidebar

Related Questions

I have a long running SQL statement that I want to run, and no
I'm running SQL that needs rounding up the value to the nearest whole number.
I have a development vm which is running sql server as well as some
I am new to PL/SQL, I'm trying to execute the commands that I learned
I'm running a T-SQL script that drops a database and then restores it. The
Anybody out there with some eagle eyes? I want to fish out the location
I'm getting an error running the following Transact-SQL command: CREATE UNIQUE NONCLUSTERED INDEX IX_TopicShortName
I'm running a query from SQL Server Management Studio 2005 that has an HTML
I'm tuning SQL queries on an Oracle database. I want to ensure that all
Running the following query in SQL Server Management Studio gives the error below. update

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.