On this page
apply_filters( 'wp_link_query', array $results, array $query )
Filters the link query results.
Description
Allows modification of the returned link query results.
See also
- ‘wp_link_query_args’: filter
Parameters
$resultsarray-
An array of associative arrays of query results.
...$0arrayIDintPost ID.titlestringThe trimmed, escaped post title.permalinkstringPost permalink.infostringA'Y/m/d'-formatted date for'post'post type, the'singular_name'post type label otherwise.
$queryarrayAn array of WP_Query arguments.Source
File:
wp-includes/class-wp-editor.php. View all references$results = apply_filters( 'wp_link_query', $results, $query );Related
Used By
Used By Description _WP_Editors::wp_link_query() wp-includes/class-wp-editor.php Performs post queries for internal linking.
Changelog
Version Description 3.7.0 Introduced.
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_link_query