A collection of lightweight WordPress modifications that we commonly use on our sites.
Each modification lives in its own file under includes/, documented with a
docblock at the top of the file describing what it does and how to configure it (if at all).
includes/bunny-cdn.php— Purge Bunny CDN cache when a post is saved or published.includes/cache-control.php— Set an HTTPCache-Controlheader on safe requests for logged-out visitors.includes/comment-spam.php— Mark comments as spam through a collection of empirically discovered heuristics.includes/login-timing.php— Reject login attempts submitted within 2.5 seconds of the login page loading.includes/noindex-archives.php— AddRobots: noindexto all non-singular pages except the front page.includes/rest-api.php— Restrict the WordPress REST API to logged-in users.includes/smtp.php— Sendwp_mail()through SMTP.includes/update-notifications.php— Keep update notifications and automatic updates working whenDISALLOW_FILE_MODSis set.includes/user-enumeration.php— Prevent user enumeration via?author=1.includes/xmlrpc.php— Disable XML-RPC.includes/yoast-debug-markers.php— Remove Yoast SEO's HTML debug comments.
Every modification is always active except bunny-cdn.php and smtp.php, which are no-ops
until their required PHP constants are defined in wp-config.php (see the docblock in each
file). You can also disable individual modifications with the ibericode_mods filter:
add_filter( 'ibericode_mods', function ( $mods ) {
return array_diff( $mods, [ 'xmlrpc' ] );
} );Download the plugin package from the latest release here on GitHub.
Go to Plugins > Add Plugin > Upload Plugin to install the plugin.
Alternatively, download or clone this repository and place in /wp-content/plugins/.
GPL v2 or later