Title: URL Query Arguments For Button Link
Last modified: August 30, 2016

---

# URL Query Arguments For Button Link

 *  Resolved [umchal](https://wordpress.org/support/users/umchal/)
 * (@umchal)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/url-query-arguments-for-button-link/)
 * Hi,
 * Very nice plugin.
 * I have a suggestion that to support inheriting url query arguments in the set
   button url. This is important when you build an affiliate system on your site.
 * Most affiliate systems tracks referrals with URL queries, something like `http://
   your-site/product_x/?referral=myaffiliateid`. Say, you set a button link to `
   http://your-site/product_x/` which links to the product page and if an affiliate
   member introduces the product with `?referral=person_a` and somebody referred
   lands on the pricing table page, then the button link becomes `http://your-site/
   product_x/?ref=person_a`.
 * I just looked over your code and technically it is fairly easy to implement. 
   Adding this line after the assignment to the `$btn_link` variable will let you
   do it.
 *     ```
       $btn_link = add_query_arg(
           $_GET,
           $btn_link
       );
       ```
   
 * Or if it is something difficult to implement, adding a filter for it would be
   appreciated.
 *     ```
       $btn_link = apply_filters( 'rpt_button_link', $btn_link );
       ```
   
 * Thanks for your consideration.
 * [https://wordpress.org/plugins/dk-pricr-responsive-pricing-table/](https://wordpress.org/plugins/dk-pricr-responsive-pricing-table/)

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

 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/url-query-arguments-for-button-link/#post-6791967)
 * Hi there,
 * Sorry for the slow answer, we mostly do support from [http://wpdarko.com/support](http://wpdarko.com/support).
   Next time please submit a ticket there, we’ll get back to you very quickly.
 * If you are still interested in this I can get you in touch with our dev here,
   this can be a good idea.
 * Keep us posted.
 *  Thread Starter [umchal](https://wordpress.org/support/users/umchal/)
 * (@umchal)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/url-query-arguments-for-button-link/#post-6791968)
 * Hi,
 * Yeah, I’m interested. But it is just a suggestion to use the `apply_filters()`
   function for the button link url so that it can be modified from a different 
   plugin. Using the function will provide a convenient means to customize the behavior
   of the plugin. So it is recommended.

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

The topic ‘URL Query Arguments For Button Link’ is closed to new replies.

 * ![](https://ps.w.org/dk-pricr-responsive-pricing-table/assets/icon-256x256.png?
   rev=1776325)
 * [Responsive Pricing Table](https://wordpress.org/plugins/dk-pricr-responsive-pricing-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dk-pricr-responsive-pricing-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pricr-responsive-pricing-table/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pricr-responsive-pricing-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pricr-responsive-pricing-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pricr-responsive-pricing-table/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [umchal](https://wordpress.org/support/users/umchal/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/url-query-arguments-for-button-link/#post-6791968)
 * Status: resolved