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

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:
2 things successful couples do over the holidays, according to a psychologist
Zelenskyy favors U.S. proposal of three-way talks if it produces results in ending war with Russia
Former Trump advisor Dina Powell McCormick leaves Meta board after eight-month stint
U.S. hits ISIS in Syria with large retaliatory strikes, officials say
How Build-A-Bear went from a penny stock to a retail winner
25-year-old certified nutrition and health coach’s grocery store hack for eating well
Instacart ends AI-driven pricing tests that pushed up costs for some shoppers
A look at two industrial names on our Best Stocks list, including one that's a buy right now
S&P 500 rises to start a holiday-shortened week, led by tech: Live updates
Why Warner Bros. Discovery shareholders might opt for Paramount's offer — and why they might not