PortGate

Blueprints · WordPress

Beginner 5 min · Linux

WordPress application passwords off

Stages a filter that disables application passwords. Useful when the site does not use the REST API with app passwords.

Live config

Baked-in protections

Step 1 · php

Must-use plugin

/root/portgate-blueprints/disable-app-passwords.php

Copy into wp-content/mu-plugins if you do not use application passwords.

<?php
add_filter('wp_is_application_passwords_available', '__return_false');

Step 2 · bash

Read-only check

/root/portgate-blueprints/app-passwords-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
ls "/var/www/html/wp-content/mu-plugins" 2>/dev/null || echo "mu-plugins is absent."