Answered: How can I add, let's say 128 characters, of the best answer (when there is one) under the questions?

Post date: 2021-05-09 03:27:07
Views: 277

If you modify the DB directly, you will not fire all the needed events needed to perform the expected action. That can either make the action fail, or make any other Q2A core or plugin feature fail. In other words, even if you don't detect you've broken something immediately, you might detect it at a later stage.

Conclusion: unless you know 100% of the Q2A core and plugin code that gets executed when performing a specific action, don't try to replicate it by modifying the database directly.

Having said so, there's a plugin that takes care of some (if not all) of these issues: https://github.com/amiyasahu/q2a-delete-hidden-posts

Please click Here to read the full story.
 
Other Top and Latest Questions:
We traded our smartphones for flip phones for 4 days—and learned that ditching modern technology is harder than it sounds
How to plan a trip for medical tourism and the best resources
Cerebras' blockbuster IPO boosts hype for SpaceX and OpenAI, but crowds out smaller players
What you need to know about Nvidia competitor Cerebras after wild IPO
Fellow Californians, How are You Handling the Governor Primary?
The Terror: The Devil in Silver: Disturbed
A Man on the Inside: Family Weekend 9
For better or worse, investors are living through Trump’s stock market. Here's why
Cisco is the most overbought stock in the S&P 500. Here are the others.
China signals tariff cuts, advances in farm market access after Trump-Xi summit