Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-widget.php

WP_Widget::_register_one()

Method: Registers an instance of the widget class.

Source: wp-includes/class-wp-widget.php:567

Used by 4 functions | Uses 6 functions

WP_Widget::save_settings()

Method: Saves the settings for all instances of the widget class.

Source: wp-includes/class-wp-widget.php:599

Used by 2 functions | Uses 1 function

WP_Widget::get_settings()

Method: Retrieves the settings for all instances of the widget class.

Source: wp-includes/class-wp-widget.php:611

Used by 4 functions | Uses 4 functions

WP_Widget::display_callback()

Method: Generates the actual widget content (Do NOT override).

Source: wp-includes/class-wp-widget.php:360

Used by 0 functions | Uses 7 functions

widget_display_callback

Filter Hook: Filters the settings for a particular widget instance.

Source: wp-includes/class-wp-widget.php:383

Used by 2 functions | Uses 0 functions

WP_Widget::update_callback()

Method: Handles changed settings (Do NOT override).

Source: wp-includes/class-wp-widget.php:411

Used by 0 functions | Uses 8 functions

widget_update_callback

Filter Hook: Filters a widget’s settings before saving.

Source: wp-includes/class-wp-widget.php:476

Used by 2 functions | Uses 0 functions

WP_Widget::form_callback()

Method: Generates the widget control form (Do NOT override).

Source: wp-includes/class-wp-widget.php:503

Used by 0 functions | Uses 6 functions

widget_form_callback

Filter Hook: Filters the widget instance’s settings before displaying the control form.

Source: wp-includes/class-wp-widget.php:530

Used by 2 functions | Uses 0 functions

in_widget_form

Action Hook: Fires at the end of the widget control form.

Source: wp-includes/class-wp-widget.php:553

Used by 2 functions | Uses 0 functions

WP_Widget

Class: Core base class extended to register widgets.

Source: wp-includes/class-wp-widget.php:21

Used by 16 functions | Uses 0 functions

WP_Widget::_get_update_callback()

Method: Retrieves the widget update callback.

Source: wp-includes/class-wp-widget.php:310

Used by 1 function | Uses 0 functions

WP_Widget::widget()

Method: Echoes the widget content.

Source: wp-includes/class-wp-widget.php:113

Used by 1 function | Uses 0 functions

WP_Widget::_get_form_callback()

Method: Retrieves the form callback.

Source: wp-includes/class-wp-widget.php:321

Used by 1 function | Uses 0 functions

WP_Widget::update()

Method: Updates a particular instance of a widget.

Source: wp-includes/class-wp-widget.php:131

Used by 1 function | Uses 0 functions

WP_Widget::is_preview()

Method: Determines whether the current request is inside the Customizer preview.

Source: wp-includes/class-wp-widget.php:339

Used by 2 functions | Uses 0 functions

WP_Widget::form()

Method: Outputs the settings update form.

Source: wp-includes/class-wp-widget.php:143

Used by 1 function | Uses 1 function

WP_Widget::__construct()

Method: PHP5 constructor.

Source: wp-includes/class-wp-widget.php:163

Used by 17 functions | Uses 1 function

WP_Widget::WP_Widget()

Method: PHP4 constructor.

Source: wp-includes/class-wp-widget.php:199

Used by 0 functions | Uses 2 functions

WP_Widget::get_field_name()

Method: Constructs name attributes for use in form() fields

Source: wp-includes/class-wp-widget.php:216

Used by 0 functions | Uses 0 functions

WP_Widget::get_field_id()

Method: Constructs id attributes for use in WP_Widget::form() fields.

Source: wp-includes/class-wp-widget.php:241

Used by 0 functions | Uses 0 functions

WP_Widget::_register()

Method: Register all widget instances of this widget class.

Source: wp-includes/class-wp-widget.php:253

Used by 0 functions | Uses 3 functions

WP_Widget::_set()

Method: Sets the internal order number for the widget instance.

Source: wp-includes/class-wp-widget.php:287

Used by 4 functions | Uses 0 functions

WP_Widget::_get_display_callback()

Method: Retrieves the widget display callback.

Source: wp-includes/class-wp-widget.php:299

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry