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::set_sidebar_widgets( int $widgets )

Sets the sidebar widgets


Description


Parameters

$widgets

(int) (Required) widgets list.


Source

File: addons/nav-menu/classes/class-astra-ext-nav-widget-support.php

		private function set_sidebar_widgets( $widgets ) {

			$sidebar_widgets = wp_get_sidebars_widgets();

			$sidebar_widgets['ast-widgets'] = $widgets;

			wp_set_sidebars_widgets( $sidebar_widgets );

		}

Changelog

Changelog
Version Description
1.6.0 Introduced.


User Contributed Notes

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