wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp-includes/widgets.php › WordPress File
Fonctions42
› Core Widgets API
Function | Short description |
---|---|
dynamic_sidebar | Display dynamic sidebar. |
is_active_sidebar | Determines whether a sidebar contains widgets. |
is_active_widget | Determines whether a given widget is displayed on the front end. |
is_dynamic_sidebar | Determines whether the dynamic sidebar is enabled and used by the theme. |
is_registered_sidebar | Checks if a sidebar is registered. |
register_sidebar | Builds the definition for a single sidebar and returns the ID. |
register_sidebars | Creates multiple sidebars. |
register_widget | Register a widget |
retrieve_widgets | Validates and remaps any "orphaned" widgets to wp_inactive_widgets sidebar, and saves the widget settings. This has to run at least on each theme change. |
the_widget | Output an arbitrary widget as a template tag. |
unregister_sidebar | Removes a sidebar from the list. |
unregister_widget | Unregisters a widget. |
wp_assign_widget_to_sidebar | Assigns a widget to the given sidebar. |
wp_check_widget_editor_deps | Displays a _doing_it_wrong() message for conflicting widget editor scripts. |
wp_convert_widget_settings | Converts the widget settings from single to multi-widget format. |
wp_find_widgets_sidebar | Finds the sidebar that a given widget belongs to. |
wp_get_sidebar | Retrieves the registered sidebar with the given ID. |
wp_get_sidebars_widgets | Retrieve full list of sidebars and their widget instance IDs. |
wp_get_widget_defaults | Retrieve default registered sidebars list. |
wp_map_sidebars_widgets | Compares a list of sidebars with their widgets against an allowed list. |
wp_parse_widget_id | Converts a widget ID into its id_base and number components. |
wp_register_sidebar_widget | Register an instance of a widget. |
wp_register_widget_control | Registers widget control callback for customizing options. |
wp_render_widget | Calls the render callback of a widget and returns the output. |
wp_render_widget_control | Calls the control callback of a widget and returns the output. |
wp_setup_widgets_block_editor | Enables the widgets block editor. This is hooked into 'after_setup_theme' so that the block editor is enabled by default but can be disabled by themes. |
wp_set_sidebars_widgets | Set the sidebar widget option to update sidebars. |
wp_sidebar_description | Retrieve description for a sidebar. |
wp_unregister_sidebar_widget | Remove widget from sidebar. |
wp_unregister_widget_control | Remove control callback for widget. |
wp_use_widgets_block_editor | Whether or not to use the block editor to manage widgets. Defaults to true unless a theme has removed support for widgets-block-editor or a plugin has filtered the return value of this function. |
wp_widgets_init | Registers all of the default WordPress widgets on startup. |
wp_widget_description | Retrieve description for widget. |
wp_widget_rss_form | Display RSS widget options form. |
wp_widget_rss_output | Display the RSS entries in a list. |
wp_widget_rss_process | Process RSS feed widget data and optionally retrieve feed items. |
_get_widget_id_base | Retrieves the widget ID base value. |
_register_widget_form_callback | Registers the form callback for a widget. |
_register_widget_update_callback | Registers the update callback for a widget. |
_wp_block_theme_register_classic_sidebars | Registers the previous theme's sidebars for the block themes. |
_wp_remove_unregistered_widgets | Compares a list of sidebars with their widgets against an allowed list. |
_wp_sidebars_changed | Handle sidebars config after theme change |