wp_link_query_args filter-hookWP 3.7.0

Filters the link query arguments.

Allows modification of the link query arguments before querying.

Usage

add_filter( 'wp_link_query_args', 'wp_kama_link_query_args_filter' );

/**
 * Function for `wp_link_query_args` filter-hook.
 * 
 * @param array $query An array of WP_Query arguments.
 *
 * @return array
 */
function wp_kama_link_query_args_filter( $query ){

	// filter...
	return $query;
}
$query(array)
An array of WP_Query arguments.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

_WP_Editors::wp_link_query()
wp_link_query_args
wp-includes/class-wp-editor.php 1812
$query = apply_filters( 'wp_link_query_args', $query );

Where the hook is used in WordPress

Usage not found.