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: 317

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:
Ken Griffin says Citadel unwound more than 80% of risk tied to Situational Awareness portfolio
Big week coming up with PCE, Nvidia earnings and then Jackson Hole. Here's what to expect
U.S. military says it aided passage of 660 million barrels of oil through Strait of Hormuz since May
Why some of America's biggest brands are losing ground in China
Most Americans aren't anti-vaccine. They're uncertain — and that's a growing public health challenge
Gift ideas for a 6 year old engineer!
Book: Why I Love Horror: Essays on Horror Literature
Movie: Meda or The Not So Bright Side of Things
Movie: Police, Adjective
Dow surges 500 points Friday, but index posts back-to-back weekly losses