Astra_Ext_Nav_Widget_Support::delete_widget()

Delete widget attached to sidebar.


Description


Return

(void)


Source

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

		public function delete_widget() {

			$widget_id = sanitize_text_field( $_POST['widget_id'] );

			check_ajax_referer( 'ast-delete-widget-' . $widget_id, 'security_nonce' );

			$this->remove_widget_from_sidebar( $widget_id );
			$this->remove_widget_instance( $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.