widget_links_args WordPress Filter Hook

The widget_links_args hook allows you to modify the arguments that are used when retrieving the links for a widget. This can be useful if you want to change the order in which the links are displayed, or if you want to limit the number of links that are displayed.

apply_filters( 'widget_links_args', array $widget_links_args, array $instance ) #

Filters the arguments for the Links widget.


Description

Top ↑

See also


Top ↑

Parameters

$widget_links_args

(array)An array of arguments to retrieve the links list.

$instance

(array)The settings for the particular instance of the widget.


Top ↑

Source

File: wp-includes/widgets/class-wp-widget-links.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Added the $instance parameter.
2.6.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.