From db14351a2e3cb193a3901a16ddddebea26108e32 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 8 Nov 2023 15:19:29 -0800 Subject: [PATCH] Filter Events: Add docs for using in raw post content. --- mu-plugins/blocks/google-map-event-filters/README.md | 6 ++++++ mu-plugins/blocks/google-map-event-filters/src/index.js | 2 +- mu-plugins/blocks/google-map/src/components/main.js | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mu-plugins/blocks/google-map-event-filters/README.md b/mu-plugins/blocks/google-map-event-filters/README.md index 197a3d026..090313abd 100644 --- a/mu-plugins/blocks/google-map-event-filters/README.md +++ b/mu-plugins/blocks/google-map-event-filters/README.md @@ -29,5 +29,11 @@ It uses the `wporg/google-map` block to display a searchable list and/or map of ``` + Alternatively, you could take that JSON and manually put it in the post source like this: + + ```html + + ``` + 1. View the page where the block is used. That will create the cron job that updates the data automatically in the future. 1. Run `wp cron event run prime_event_filters` to test the filtering. Look at each title, and add any false positives to `$false_positives` in `filter_potential_events()`. If any events that should be included were ignored, add a keyword from the title to `$keywords`. Run the command after those changes and make sure it's correct now. diff --git a/mu-plugins/blocks/google-map-event-filters/src/index.js b/mu-plugins/blocks/google-map-event-filters/src/index.js index b5df1e45b..a00c78606 100644 --- a/mu-plugins/blocks/google-map-event-filters/src/index.js +++ b/mu-plugins/blocks/google-map-event-filters/src/index.js @@ -14,7 +14,7 @@ function Edit() { return (