Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woo-product-filter
/
modules
/
woofilters_widget
/
elementor
:
widget.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Maps widget class */ class WpfWoofiltersWidget extends WP_Widget { public function __construct() { $widgetOps = array( 'classname' => 'WpfWoofiltersWidget', 'description' => esc_html__('Displays Filters', 'woo-product-filter') ); parent::__construct( 'WpfWoofiltersWidget', WPF_WP_PLUGIN_NAME, $widgetOps ); } public function widget( $args, $instance ) { if ( is_array( $args ) ) { extract( $args ); } extract($instance); FrameWpf::_()->getModule('woofilters_widget')->getView()->displayWidget($instance, $args); } public function form( $instance ) { extract($instance); FrameWpf::_()->getModule('woofilters_widget')->getView()->displayForm($instance, $this); } public function update( $new_instance, $old_instance ) { return $new_instance; } }