widget_posts_args

Advertisement

Summery Summery

Filters the arguments for the Recent Posts widget.

Syntax Syntax

apply_filters( 'widget_posts_args', array $args, array $instance )

Parameters Parameters

$args

An array of arguments used to retrieve the recent posts.

$instance

Array of settings for the current widget.

Source Source

File: wp-includes/widgets/class-wp-widget-recent-posts.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Added the $instance parameter.
3.4.0 Introduced.

See also See also

Advertisement

Leave a Reply