Astra_Ext_Nav_Widget_Support::get_widget_list()

Function to get widget list


Description


Return

(array;)


Source

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

		public function get_widget_list() {

			global $wp_widget_factory;

			$widgets = array();

			foreach ( $wp_widget_factory->widgets as $widget ) {

				$widgets[] = array(
					'text' => $widget->name,
					'id'   => $widget->id_base,
				);
			}

			return $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.