| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Widget API: WP_Widget_Recent_Comments class
| File Size: | 218 lines (7 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_Widget_Recent_Comments:: (6 methods):
__construct()
recent_comments_style()
widget()
update()
form()
flush_widget_cache()
Class: WP_Widget_Recent_Comments - X-Ref
Core class used to implement a Recent Comments widget.| __construct() X-Ref |
| Sets up a new Recent Comments widget instance. since: 2.8.0 |
| recent_comments_style() X-Ref |
| Outputs the default styles for the Recent Comments widget. since: 2.8.0 |
| widget( $args, $instance ) X-Ref |
| Outputs the content for the current Recent Comments widget instance. param: array $args Display arguments including 'before_title', 'after_title', param: array $instance Settings for the current Recent Comments widget instance. since: 2.8.0 since: 5.4.0 Creates a unique HTML ID for the `<ul>` element |
| update( $new_instance, $old_instance ) X-Ref |
| Handles updating settings for the current Recent Comments widget instance. return: array Updated settings to save. param: array $new_instance New settings for this instance as input by the user via param: array $old_instance Old settings for this instance. since: 2.8.0 |
| form( $instance ) X-Ref |
| Outputs the settings form for the Recent Comments widget. param: array $instance Current settings. since: 2.8.0 |
| flush_widget_cache() X-Ref |
| Flushes the Recent Comments widget cache. since: 2.8.0 |
| Generated: Tue Oct 28 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |