Inventory_Presser_Location_Hours::__construct()

__construct

Description 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.


Top ↑

Return Return

(void)


Top ↑

Source Source

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

			self::ID_BASE,
			'Hours',
			array(
				'description'           => __( 'Display hours of operation.', 'inventory-presser' ),
				'show_instance_in_rest' => true,
			)
		);

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

	/**