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

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:
U.S. sanctions companies and individuals in the Middle East and China for helping Iran
Major crypto bill slated for May 14 Senate Banking Committee vote
AI-powered scam calls are getting more convincing—and more common: 'It was her voice, I know her scared cry'
Michael Burry says the market today feels like 'the last months of the 1999-2000 bubble'
Movie: They Will Kill You
Iran says it has sent its response to the U.S. peace proposal
Alphabet's 160% rally in a year reflects value of owning 'most of the stack' in AI
SEC delay on prediction markets ETFs echoes a long-fought bitcoin fund battle
Frontier jet hits and kills pedestrian on runway in Denver during takeoff
MV Hondius hantavirus outbreak: A luxury expedition cruise boom and new world of remote travel risks