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

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:
Pope Leo XIV urges peace in first Easter Mass, skips naming conflicts in Urbi et Orbi
Anthropic limits Mythos AI rollout over fears hackers could use model for cyberattacks
CNBC Points Pro: How soon should I use my credit card points after earning them?
Elon Musk seeks ouster of OpenAI CEO Sam Altman as part of lawsuit
Delta, Southwest raise checked bag fees $10 amid jet fuel price surge, joining other carriers
Two-gender musical duos?
Trump threatens tariffs of 50% on countries 'supplying military weapons to Iran'
Movie: The House by the Cemetery
JD Vance calls Iran ceasefire a 'fragile truce' and says Trump is 'impatient to make progress'
Markets shift back towards potential Fed rate cut this year with Iran ceasefire in place