Method |
Description |
|
get_sidebar_widgets ( string $sidebar_id ) : array |
Get the widgets (and their associated data) for a given sidebar |
|
get_widget_data ( string $widget_id ) : array |
Get the widget's name, option index, sidebar, and sidebar index from its ID |
|
get_widget_obj ( string $id_base ) : WP_Widget | false |
Get a widget's instantiated object based on its name |
|
get_widget_options ( string $name ) : array |
Get the options for a given widget |
|
move_sidebar_widget ( string $widget_id, string | null $current_sidebar_id, string $new_sidebar_id, integer | null $current_index, integer $new_index ) |
Reposition a widget within a sidebar or move to another sidebar. |
|
sanitize_widget_options ( string $id_base, mixed $dirty_options, mixed $old_options ) : mixed |
Clean up a widget's options based on its update callback |
|
update_widget_options ( string $name, $value ) |
Update the options for a given widget |
|
validate_sidebar ( string $sidebar_id ) |
Check whether a sidebar is a valid sidebar |
|
validate_sidebar_widget ( string $widget_id ) |
Check whether the specified widget is on the sidebar |
|
wp_get_sidebars_widgets ( ) |
Re-implementation of wp_get_sidebars_widgets()
because the original has a nasty global component |
|