Published 25 December 2024 · Updated 11 October 2026
Use prepared database commands
Custom code must securely bind values to database commands. Within WordPress, wpdb->prepare is a tool for appropriate commands. Do not build SQL by gluing visitor input together.
Validate and check privileges
Check which values are allowed and who is allowed to perform an operation. Sanitizing alone is not a replacement for a securely built-up database command.
Maintain the used software
Keep track of WordPress, themed plugins and plugins. Use only maintained parts and remove code that you no longer need.
Examination abnormalities
Unexpected changes or errors require research. Security software and logs can send signals, but do not replace a secure implementation. Create a recovery plan for your data.

