wordpress url arguments code example
Example 1: set query variables in wordpress
// When calling a template with get_template_part()
set_query_var('my_form_id', 23);
get_template_part('my-form-template');
// Inside my-form-template.php
$my_form_id = get_query_var('my_form_id');
Example 2: WordPress add query string to URL
PHP$url = 'http://example.com/whatever/?hello=world';
shapeSpace_add_var($url, 'goodbye', 'nightclub');