当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Get query string parameter value wordpress

问题描述:

I'm trying to get orderID parameter value from the URL in WordPress but unable. I

used $_GET['orderID'] like do in PHP but its nots working for me.

 http://www.example.com/thankyou/?orderID=z1r9HJHH

Thanks

网友答案:

try get_query_var function in WP. will find more details on below link.

https://codex.wordpress.org/Function_Reference/get_query_var

分享给朋友:
您可能感兴趣的文章:
随机阅读: