widget_links_args filter-hookWP 2.6.0

Filters the arguments for the Links widget.

Usage

add_filter( 'widget_links_args', 'wp_kama_widget_links_args_filter', 10, 2 );

/**
 * Function for `widget_links_args` filter-hook.
 * 
 * @param array $widget_links_args An array of arguments to retrieve the links list.
 * @param array $instance          The settings for the particular instance of the widget.
 *
 * @return array
 */
function wp_kama_widget_links_args_filter( $widget_links_args, $instance ){

	// filter...
	return $widget_links_args;
}
$widget_links_args(array)
An array of arguments to retrieve the links list.
$instance(array)
The settings for the particular instance of the widget.

Changelog

Since 2.6.0 Introduced.
Since 4.4.0 Added the $instance parameter.

Where the hook is called

WP_Widget_Links::widget()
widget_links_args
wp-includes/widgets/class-wp-widget-links.php 80
wp_list_bookmarks( apply_filters( 'widget_links_args', $widget_links_args, $instance ) );

Where the hook is used in WordPress

Usage not found.