wp_link_query_args
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_link_query_args
wp-includes/class-wp-editor.php 1812
$query = apply_filters( 'wp_link_query_args', $query );