This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Cloudflare Cache Purge Extended | |
| * Description: Purges Cloudflare cache for the front page, specific post, wp-json routes, and general posts endpoint when a post is published, updated, scheduled, or trashed. | |
| * Version: 1.1 | |
| * Author: Raymon Mens | |
| */ | |
| // Cloudflare settings | |
| $cloudflare_zone_id = 'YOUR_ZONE_ID'; |