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

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:
What student loan borrowers can do if they're facing wage garnishment: 'Early action' is critical, advisor says
Houses passes ACA subsidies; fate of bill murky in Senate
NASA to bring space station astronauts back to Earth weeks early due to medical situation
Rolls-Royce has hit a record high every trading day of 2026. Here's why
As tech stocks soar, executives use exchange funds to diversify wealth without selling
CNBC Sport: WNBA and players dig in their heels as CBA deadline set to expire
Lockheed Martin is attractively valued to start the year, says Truist
Stars are aligning for Treasury yields to fall. This options trade hedges risk and makes money if rates dip
Trump orders mortgage bond purchases to lower rates. These stocks are jumping in response
Supreme Court holds off on Trump tariff ruling for now — what's at stake for economy