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

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:
Russia and Ukraine agree local truce to allow repairs at Europe’s largest nuclear power plant
Opinion: Block's layoffs might just be the biggest story of a tumultuous week. Here's why
Pakistan bombs targets in Afghan cities, minister calls it 'open war'
OpenAI announces $110 billion funding round with backing from Amazon, Nvidia, SoftBank
The Strait of Hormuz is facing a blockade. These countries will be most impacted
How high can oil and gas prices go because of the Iran war? Here are the scenarios
Apple launches lower cost iPhone 17e and a new iPad Air powered by its M4 chip
South Korea's Kospi sees worst day in 19 months amid broader decline in Asia stocks
Iran war live updates: U.S. embassy in Riyadh hit by drones, Trump promises response 'soon'
Special Event: Taylor Tomlinson: Prodigal Daughter