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

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:
Women say caregiving and child care costs are the No. 1 reason they quit the workforce last year, according to new data
The risk-reward on this payments stock looks attractive. How to trade it using a risk reversal options trade
Big moves in an AI data center power stock. What we want from Tuesday's earnings
From PopMart to JD.com: Britain and China rush to forge business deals as diplomatic thaw takes hold  
How to show question title before question meta in question list. (Mayropro theme)
question2answer have everything accept one...
These names on Josh Brown's best stocks list showed strength during last week's volatility. One is forming a 'golden cross'
Trump says U.S. and India reached trade deal, will lower tariffs immediately
United Arab Emirates' 'Spy Sheikh' bought secret stake in Trump crypto company: WSJ
Disney beats Wall Street expectations propelled by theme parks and streaming