From 95c8896ea22a84c7d278e5c0a8e95f903d2edc74 Mon Sep 17 00:00:00 2001 From: Ian Cole Date: Wed, 5 Sep 2018 03:27:10 +0000 Subject: [PATCH] added query string variable csv-year for the csv exports that need to filter by year --- mfo-base.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mfo-base.php b/mfo-base.php index aa9d04a..49adfa4 100644 --- a/mfo-base.php +++ b/mfo-base.php @@ -517,6 +517,7 @@ function crlf_shortcode( $atts, $content = null ) { function custom_rewrite_tag() { //https://codex.wordpress.org/Rewrite_API/add_rewrite_rule add_rewrite_tag('%csv-filename%', '([^&]+)'); + add_rewrite_tag('%csv-year%', '([^&]+)'); } add_action('init', 'custom_rewrite_tag', 10, 0);