WPDev.one
Core Class

WP_Widget_Recent_Posts

class WP_Widget_Recent_Posts // Constructor: function Object() { [native code] }

Core class used to implement a Recent Posts widget.

Methods 4 methods

Method / Return Description
__construct()
void

Sets up a new Recent Posts widget instance.

widget()
void

Outputs the content for the current Recent Posts widget instance.

Parameters: $args: mixed, $instance: mixed
update()
array

Handles updating the settings for the current Recent Posts widget instance.

Parameters: $new_instance: mixed, $old_instance: mixed
form()
void

Outputs the settings form for the Recent Posts widget.

Parameters: $instance: mixed

Class Information

Since Version
2.8.0
Source File
wp-includes/widgets/class-wp-widget-recent-posts.php
Advertisement