Overview
Cloudflare describes itself as: “All of Cloudflare’s performance and security benefits in a simple one-click install.”
It is active on 200,000+ WordPress sites and rated 3.5 out of 5 by 181 users on WordPress.org. Developers can extend it through 1 actions and 5 filters, listed below.
How to install Cloudflare
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Cloudflare” and pick the one by Cloudflare.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install cloudflare --activateRequirements: WordPress 6.7+ · PHP 7.4+ · tested up to WordPress 7.1.4
Hooks & customisation
Cloudflare 4.14.5 fires 1 actions and 5 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Filter in src/WordPress/Hooks.php
apply_filters( 'cloudflare_purge_by_url', $this->getPostRelatedLinks($postId), $postId );
// Filter in cloudflare.loader.php
apply_filters( 'cloudflare_purge_everything_actions', $cloudflarePurgeEverythingActions );
// Filter in cloudflare.loader.php
apply_filters( 'cloudflare_purge_url_actions', $cloudflarePurgeURLActions );
// Action in src/WordPress/Hooks.php
do_action( 'cloudflare_purged_urls', $urls, $postIds );
// Filter in src/WordPress/Hooks.php
apply_filters( 'cloudflare_use_cache', !is_user_logged_in() );
// Filter in src/WordPress/HTTP2ServerPush.php
apply_filters( 'http2_link_preload_src', $src );Need Cloudflare customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Cloudflare. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.