Security glossaryA backdoor is hidden code an attacker leaves on a hacked site so they can get back in, even after passwords are changed.
A backdoor is hidden code that lets an attacker get back into a site they have already broken into, even after passwords are changed or the obvious damage is cleaned up. It is why a hacked site often gets reinfected days after a clean-up.
Where they hide
On WordPress sites backdoors are often PHP files with harmless-looking names in wp-content/uploads, code added to a theme's functions.php, a fake plugin, a modified core file, or a hidden administrator account in the database. The code is usually obfuscated, for example with base64_decode and eval.
Finding them
Compare core files against the official checksums (wp core verify-checksums in WP-CLI) and themes and plugins against clean copies, look for PHP files in the uploads folder (there should be none), check for unknown admin users, then change every password and the security keys. See how to fix a hacked WordPress site.
Source: NIST glossary: backdoor, WP-CLI: wp core verify-checksums.