apply_filters( 'wp_link_query_args', array $query )

Filters the link query arguments.

Description

Allows modification of the link query arguments before querying.

See also

  • WP_Query: for a full list of arguments

Parameters

$query

(array) An array of WP_Query arguments.

More Information

The “wp_link_query_args” filter is used to filter the array of arguments passed to the wp_link_query function which is responsible for building the list of linkable content in the modal window that displays when you insert a link. wp_link_query_args allows you to alter the query before the list is rendered on the page.

Source

File: wp-includes/class-wp-editor.php

View on Trac

Changelog

Version Description
3.7.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_link_query_args