Skip to content

Commit da8c842

Browse files
committed
docs: tidy Hooks and programmatic purging section into grouped lists
1 parent 3818c85 commit da8c842

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ Details:
9797

9898
## Extensibility
9999

100-
The plugin exposes filters (`cache_tags_for_cloudflare/tags`, `.../purge_tags`), result actions (`.../purged`, `.../purge_failed`), and action hooks for programmatic purging (`.../purge_post`, `.../purge_terms`, `.../purge_post_type`, `.../purge_all`, `.../purge`). See the [Developer guide](docs/DEVELOPER.md) for full documentation and examples.
100+
The plugin exposes hooks for customizing tags and purging from your own code:
101+
102+
- **Filters:** `cache_tags_for_cloudflare/tags`, `cache_tags_for_cloudflare/purge_tags`
103+
- **Result actions:** `cache_tags_for_cloudflare/purged`, `cache_tags_for_cloudflare/purge_failed`
104+
- **Programmatic purging:** `cache_tags_for_cloudflare/purge_post`, `.../purge_terms`, `.../purge_post_type`, `.../purge_all`, `.../purge`
105+
106+
See the [Developer guide](docs/DEVELOPER.md) for full documentation and examples.
101107

102108
## WP-CLI
103109

readme.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,15 @@ When **Auto-purge on changes** is enabled and valid credentials are set, the plu
6060

6161
Only public post types and taxonomies are considered; revisions and autosaves are ignored. Tags collected during a request are de-duplicated and sent as a single batched purge after the response (in Cloudflare's 30-tags-per-request batches). Draft-only edits, comments, menu/widget/theme changes, and plugin/core updates do not trigger a purge — use the Purge tab, WP-CLI, or the `cache_tags_for_cloudflare/purge_tags` filter for those. Static files such as images are served outside WordPress and are not tagged or purged by tag.
6262

63-
= Extending the tags =
63+
= Hooks and programmatic purging =
6464

65-
The plugin exposes filters (`cache_tags_for_cloudflare/tags`, `cache_tags_for_cloudflare/purge_tags`), result actions (`cache_tags_for_cloudflare/purged`, `cache_tags_for_cloudflare/purge_failed`), and action hooks for programmatic purging (`cache_tags_for_cloudflare/purge_post`, `/purge_terms`, `/purge_post_type`, `/purge_all`, `/purge`). See the [Developer guide](https://github.com/soderlind/cache-tags-for-cloudflare/blob/main/docs/DEVELOPER.md) for full documentation and examples.
65+
The plugin exposes hooks for customizing tags and purging from your own code:
66+
67+
* Filters: `cache_tags_for_cloudflare/tags`, `cache_tags_for_cloudflare/purge_tags`
68+
* Result actions: `cache_tags_for_cloudflare/purged`, `cache_tags_for_cloudflare/purge_failed`
69+
* Programmatic purging: `cache_tags_for_cloudflare/purge_post`, `/purge_terms`, `/purge_post_type`, `/purge_all`, `/purge`
70+
71+
See the [Developer guide](https://github.com/soderlind/cache-tags-for-cloudflare/blob/main/docs/DEVELOPER.md) for full documentation and examples.
6672

6773
= WP-CLI =
6874

0 commit comments

Comments
 (0)