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

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:
Multifamily housing leads CRE bid competition in October
Applying to jobs from Thanksgiving to New Year's isn't pointless, experts say: 'You actually have more opportunity to stand out'
New Jersey deli fraudsters fail to pay millions of dollars in restitution, judge says
Dick's Sporting Goods to shutter some Foot Locker stores to protect profits
We're buying more shares of a company that can deliver growth in a tough economy
Core wholesale prices rose less than expected in September; retail sales gain
Why rural Wisconsin is blocking the AI data center boom: 'Horses are skittish'
Michael Burry's next 'Big Short': An inside look at his analysis showing AI is a bubble
CNBC's Official NHL Team Valuations 2025: Here's how the 32 franchises stack up
Sellers are taking their homes off the market at the fastest pace in nearly a decade