te url.   
[ _post_format_link() ](https://developer.wordpress.org/reference/functions/_post_format_link/) ` wp-includes/post-formats.php ` |  Filters the post format term link to remove the format prefix.   
[ WP_Scripts::do_item() ](https://developer.wordpress.org/reference/classes/wp_scripts/do_item/) ` wp-includes/class-wp-scripts.php ` |  Processes a script dependency.   
[ get_comment_reply_link() ](https://developer.wordpress.org/reference/functions/get_comment_reply_link/) ` wp-includes/comment-template.php ` |  Retrieves HTML content for reply to comment link.   
[ get_comment_link() ](https://developer.wordpress.org/reference/functions/get_comment_link/) ` wp-includes/comment-template.php ` |  Retrieves the link to a given comment.   
[ wp_style_loader_src() ](https://developer.wordpress.org/reference/functions/wp_style_loader_src/) ` wp-includes/script-loader.php ` |  Administration Screen CSS for changing the styles.   
[ wp_print_media_templates() ](https://developer.wordpress.org/reference/functions/wp_print_media_templates/) ` wp-includes/media-template.php ` |  Prints the templates used in the media manager.   
Show 153 more  Show less

##  Changelog

Version  |  Description   
---|---  
[ 5.3.0 ](https://developer.wordpress.org/reference/since/5.3.0/) |  Formalized the existing and already documented parameters by adding ` ...$args ` to the function signature.   
[ 1.5.0 ](https://developer.wordpress.org/reference/since/1.5.0/) |  Introduced.   
  
##  User Contributed Notes

  1. Skip to note 8 content 

[ Codex ](https://profiles.wordpress.org/codex/) [ 9 years ago
](https://developer.wordpress.org/reference/functions/add_query_arg/#comment-260)

[ You must log in to vote on the helpfulness of this note
](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_query_arg%2F%23comment-260
"You must log in to vote on the helpfulness of this note") Vote results for
this note:  23  [ You must log in to vote on the helpfulness of this note
](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_query_arg%2F%23comment-260
"You must log in to vote on the helpfulness of this note")

Assuming we’re at the WordPress URL “http://blog.example.com/client/?s=word”…
Note the use of ` esc_url() ` before outputting the link. This is necessary
because this function does not escape URLs and if output without escaping,
would make the page vulnerable to XSS scripting.

    
        // This would output '/client/?s=word&foo=bar'

    echo esc_url( add_query_arg( 'foo', 'bar' ) );

    

    // This would output '/client/?s=word&foo=bar&baz=tiny'

    $arr_params = array( 'foo' => 'bar', 'baz' => 'tiny' );

    echo esc_url( add_query_arg( $arr_params ) );

[ Log in to add feedback
](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_query_arg%2F%3Freplytocom%3D260%23feedback-
editor-260)

  2. Skip to note 9 content 

[ Ahmad Awais ](https://profiles.wordpress.org/mrahmadawais/) [ 8 years ago
](https://developer.wordpress.org/reference/functions/add_query_arg/#comment-1328)

[ You must log in to vote on the helpfulness of this note
](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_query_arg%2F%23comment-1328
"You must log in to vote on the helpfulness of this note") Vote results for
this note:  6  [ You must log in to vote on the helpfulness of this note
](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_query_arg%2F%23comment-1328
"You must log in to vote on the helpfulness of this note")

To safely redirect user to a custom page inside ` plugins.php `

    
        // Redirect to Welcome Page.
    // Redirects to your-domain.com/wp-admin/plugin.php?page=your_plugin_page.
    wp_safe_redirect( add_query_arg( array( 'page' => 'your_plugin_page' ), admin