wp_link_query

Advertisement

Summery Summery

Filters the link query results.

Syntax Syntax

apply_filters( 'wp_link_query', array $results, array $query )

Description Description

Allows modification of the returned link query results.

Parameters Parameters

$results

An array of associative arrays of query results.

  • '...$0'
    (array)
    • 'ID'
      (int) Post ID.
    • 'title'
      (string) The trimmed, escaped post title.
    • 'permalink'
      (string) Post permalink.
    • 'info'
      (string) A 'Y/m/d'-formatted date for 'post' post type, the 'singular_name' post type label otherwise.

$query

An array of WP_Query arguments.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.

See also See also

Advertisement

Leave a Reply