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;

		}

Changelog

Changelog
Version Description
1.6.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.