Quickly disable all plugins in WordPress.
This plugin needs to go into the wp-content/mu-plugins/ directory. Provided you have SSH access to the server where WordPress lives, you can do this:
cd $SITE_ROOT/wp-content/mu-pluginsThis document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| <?php echo krogs_output_related_posts(); ?> |
| <?php | |
| /* | |
| * Plugin Name: Remove crazy counts slowing down my dashboard | |
| * Plugin URI: https://pmgarman.me | |
| * Description: Those comment counts are such a pain when you have a lot of comments | |
| * Author: Patrick Garman | |
| * Author URI: https://pmgarman.me | |
| * Version: 1.0.0 | |
| * License: GPLv2 | |
| */ |
Requests for other sites are welcome (admin@cryto.net).
| <?php | |
| add_filter( 'authenticate', 'rkv_disable_username_logins', 20, 3 ); | |
| /** | |
| * Disable admin username and redirect to Google (or another site). | |
| * | |
| * @param object $user The WP_User object. | |
| * @param string $username The entered username. | |
| * @param string $password The entered password. | |
| * |
| #!/usr/bin/env sh | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # Version 2, December 2004 | |
| # | |
| # Copyright (C) 2020 glaszig <glaszig@gmail.com> | |
| # | |
| # Everyone is permitted to copy and distribute verbatim or modified | |
| # copies of this license document, and changing it is allowed as long | |
| # as the name is changed. |
| #!/usr/bin/env bash | |
| URL_TO_CHECK=${1} | |
| if [ -z "$URL_TO_CHECK" ]; then | |
| echo 'Please supply a URL' | |
| exit 1; | |
| fi | |
| WP="wp" |