Inventory_Presser_Location_Address::__construct()

__construct


Description

Calls the parent class' contructor and adds a hook that will delete the option that stores this widget's data when the plugin's delete all data method is run.


Return

(void)


Source

File: includes/widget/class-widget-address.php

	function __construct() {
		parent::__construct(
			self::ID_BASE,
			__( 'Address', 'inventory-presser' ),
			array(
				'description'           => __( 'Display one or more mailing addresses.', 'inventory-presser' ),
				'show_instance_in_rest' => true,
			)
		);

		add_action( 'invp_delete_all_data', array( $this, 'delete_option' ) );
	}