How to parse a custom url (within WP site) and obtain params passed to that URL
First, you register your query vars param1 and param2: function wpse_101951_query_vars( $qv ) { $qv[] = ‘param1’; $qv[] = ‘param2’; return $qv; } add_filter( ‘query_vars’, ‘wpse_101951_query_vars’ ); To use this information, you can pretty much hook into any action or filter after parse_query. That’s the first action available after the query vars are set, so … Read more