Can someone explain the function of the third parameter of “add_rewrite_tag”
The third parameter tells WordPress what query variable(s) to use/match. We can query our WordPress database with those public query variables, via requests like example.com/?foo1=bar1&foo2=bar2 but we usually want to rewrite it to something more pretty, like example.com/bar1/bar2/. In the Codex there’s a list of the default available public query variables: attachment attachment_id author author_name … Read more