wp_link_query
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'wp_link_query', array $results, array $query )
Описание
Позволяет изменить возвращаемые результаты запроса ссылок.
См. также 'wp_link_query_args': фильтр
Оригинал (английский)
Фильтруемое значение
...$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$results = apply_filters( 'wp_link_query', $results, $query );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description _WP_Editors::wp_link_query() wp-includes/class-wp-editor.phpPerforms post queries for internal linking.
Version Description 3.7.0 Introduced.
Параметры
$results
array
обязательный
...$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$results = apply_filters( 'wp_link_query', $results, $query );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description _WP_Editors::wp_link_query() wp-includes/class-wp-editor.phpPerforms post queries for internal linking.
Version Description 3.7.0 Introduced.
Исходный код
wp-includes/class-wp-editor.php:1858
$results = apply_filters( 'wp_link_query', $results, $query );
История изменений
| Версия | Описание |
|---|---|
| 3.7.0 | Introduced. |

