set_query_var( string $var, mixed $value )  Sets the value of a query variable in the WP_Query class.   Parameters   $var string Required    Query variable key.    $value mixed Required    Query variable value.      Source  File: wp-includes/query.php. View all references  function set_query_var( $var, $value ) {
	global $wp_query;
	$wp_query->set( $var, $value );
}
   Related  Uses    Uses Description      WP_Query8b7c:f320:99b9:690f:4595:cd17:293a:c069set() wp-includes/class-wp-query.php   Sets the value of a query variable.   
   Used By    Used By Description      build_comment_query_vars_from_block() wp-includes/blocks.php   Helper function that constructs a comment query vars array from the passed block properties.     wp_list_comments() wp-includes/comment-template.php   Displays a list of comments.     comments_template() wp-includes/comment-template.php   Loads the comment template specified in $file.   
    Changelog    Version Description     2.2.0 Introduced.    

    
{'path': 'public/docs/wordpress/functions/set_query_var.html', 'source': 'DevDocs.IO'}