Skip to content

Commit

Permalink
added query string variable csv-year for the csv exports that need to…
Browse files Browse the repository at this point in the history
… filter by year
  • Loading branch information
digitalman2112 committed Sep 5, 2018
1 parent ebc69cd commit 95c8896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mfo-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95c8896

Please sign in to comment.