wp_link_query WordPress Filter Hook

The wp_link_query hook is used to retrieve links from the WordPress database. This hook is used by the WordPress Link manager to get links from the database.

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

Filters the link query results.


Description

Allows modification of the returned link query results.

Top ↑

See also


Top ↑

Parameters

$results

(array)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

(array)An array of WP_Query arguments.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.