public function form($instance)
	{
		// FIXME: Workaround for issue: https://github.com/CMB2/CMB2-Snippet-Library/issues/66
		add_filter('cmb2_override_meta_value', [$this, 'cmb2_override_meta_value'], 11, 4);

		// If there are no settings, set up defaults
		$this->_instance = wp_parse_args((array) $instance, $this->getDefaults());
		$cmb2 = $this->cmb2();
		$cmb2->object_id($this->option_name);
		$cmb2->show_form();

		remove_filter('cmb2_override_meta_value', [$this, 'cmb2_override_meta_value']);
	}
public function form($instance)
	{
		// FIXME: Workaround for issue: https://github.com/CMB2/CMB2-Snippet-Library/issues/66
		add_filter('cmb2_override_meta_value', [$this, 'cmb2_override_meta_value'], 11, 4);

		// If there are no settings, set up defaults
		$this->_instance = wp_parse_args((array) $instance, $this->getDefaults());
		$cmb2 = $this->cmb2();
		$cmb2->object_id($this->option_name);
		$cmb2->show_form();

		remove_filter('cmb2_override_meta_value', [$this, 'cmb2_override_meta_value']);
	}
public function form ( $ instance ) { // FIXME: Workaround for issue: https://github.com/CMB2/CMB2-Snippet-Library/issues/66 add_filter ( 'cmb2_override_meta_value' , [ $ this , 'cmb2_override_meta_value' ] , 11 , 4 ) ; // If there are no settings, set up defaults $ this -> _instance = wp_parse_args ( ( array ) $ instance , $ this -> getDefaults ( ) ) ; $ cmb2 = $ this -> cmb2 ( ) ; $ cmb2 -> object_id ( $ this -> option_name ) ; $ cmb2 -> show_form ( ) ; remove_filter ( 'cmb2_override_meta_value' , [ $ this , 'cmb2_override_meta_value' ] ) ; }
Back-end widget form with defaults.

@param  array  $instance  Current settings.
Back - end widget form with defaults .