woocommerce_widget_settings_sanitize_option

woocommerce_widget_settings_sanitize_option

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_widget_settings_sanitize_option') is found 1 times:

  • /includes/abstracts/abstract-wc-widget.php line 230
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
            /**
             * Sanitize the value of a setting.
             */
            $instance[ $key ] = apply_filters( 'woocommerce_widget_settings_sanitize_option', $instance[ $key ], $new_instance, $key, $setting );
        }
     
        $this->flush_widget_cache();
     
        return $instance;
    }