• Hi there

    What can this code do when inserted in functions.php?

    function custom_rewrite_tag() {
      add_rewrite_tag('%location%', '([^&]+)');
    }
    add_action('init', 'custom_rewrite_tag', 10, 0);

    Thanks.

    • This topic was modified 2 years, 4 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What can this code do when inserted in functions.php?’ is closed to new replies.