Filter hook 'wp_link_query'
in WP Core File wp-includes/class-wp-editor.php at line 1857
Description
Filters the link query results. Allows modification of the returned link query results. the 'singular_name' post type label otherwise. } }
Occurrences
Filename |
Line Number |
wp-includes/class-wp-editor.php |
1857 |
Parameters
Type |
Name |
Description |
array |
$results |
{ An array of associative arrays of query results. |
array |
$query |
An array of WP_Query arguments. |
PHP Doc
/**
* Filters the link query results.
*
* Allows modification of the returned link query results.
*
* @since 3.7.0
*
* @see 'wp_link_query_args' filter
*
* @param array $results {
* An array of associative arrays of query results.
*
* @type array ...$0 {
* @type int $ID Post ID.
* @type string $title The trimmed, escaped post title.
* @type string $permalink Post permalink.
* @type string $info A 'Y/m/d'-formatted date for 'post' post type,
* the 'singular_name' post type label otherwise.
* }
* }
* @param array $query An array of WP_Query arguments.
*/