This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Ext_Nav_Widget_Support::add_widget_to_sidebar( int $widget_id, int $next_id )
Adds a widget to Astra sidebar.
Description
Parameters
- $widget_id
-
(int) (Required) widget id.
- $next_id
-
(int) (Required) next widget id.
Return
(int)
Source
File: addons/nav-menu/classes/class-astra-ext-nav-widget-support.php
private function add_widget_to_sidebar( $widget_id, $next_id ) { $widget_id = $widget_id . '-' . $next_id; $sidebar_widgets = $this->get_ast_sidebar_widgets(); $sidebar_widgets[] = $widget_id; $this->set_sidebar_widgets( $sidebar_widgets ); do_action( 'ast_after_widget_add' ); return $widget_id; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |