Title: Passing URL parameters
Last modified: May 2, 2021

---

# Passing URL parameters

 *  [webordergr](https://wordpress.org/support/users/webordergr/)
 * (@webordergr)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/)
 * Hello,
 * after scanning a QR Code with some URL parameters like for example table=3 or
   table=2 I want this parameter to be on any URL the visitor is visiting on the
   site.
 * For example the QR code takes the visitor to
    [http://www.example.com/menu/?table=3](http://www.example.com/menu/?table=3)
   then the visitor goe to [http://www.example.com/contact](http://www.example.com/contact)
   I need the URL parameter to follow so it should be [http://www.example.com/contact/?table=3](http://www.example.com/contact/?table=3)
 * Is there any way to do that ?
 * thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/#post-14389653)
 * Sure! For posts, you can use the “post_link” filter to arbitrarily alter the 
   permalink of any post. For pages, use “page_link”. For any custom post types,
   use “post_type_link” filter.
    [https://developer.wordpress.org/reference/hooks/post_link/](https://developer.wordpress.org/reference/hooks/post_link/)
   [https://developer.wordpress.org/reference/hooks/page_link/](https://developer.wordpress.org/reference/hooks/page_link/)
   [https://developer.wordpress.org/reference/hooks/post_type_link/](https://developer.wordpress.org/reference/hooks/post_type_link/)
 *  Thread Starter [webordergr](https://wordpress.org/support/users/webordergr/)
 * (@webordergr)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/#post-14391094)
 * I am checking out.
 * Thank you for the info.
 *  [akira9000](https://wordpress.org/support/users/akira9000/)
 * (@akira9000)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/#post-14411932)
 * [@webordergr](https://wordpress.org/support/users/webordergr/)
 * Did you get anywhere with this. I’d appreciate some help, I have exactly the 
   same problem – passing parameter from landing page to following pages.
 *  Thread Starter [webordergr](https://wordpress.org/support/users/webordergr/)
 * (@webordergr)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/#post-14412305)
 * No unfortunately I didn’t have the time to check it out.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Passing URL parameters’ is closed to new replies.

## Tags

 * [url parameter](https://wordpress.org/support/topic-tag/url-parameter/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 4 replies
 * 3 participants
 * Last reply from: [webordergr](https://wordpress.org/support/users/webordergr/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/passing-url-parameters-2/#post-14412305)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
