Inventory_Presser_Fuel_Economy_Widget::__construct()
__construct
Contents
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.
Return Return
(void)
Source Source
File: includes/widget/class-widget-fuel-economy.php
public function __construct() { parent::__construct( self::ID_BASE, // Base ID __( 'EPA Fuel Economy', 'inventory-presser' ), // Name array( 'description' => __( 'MPG ratings for the current vehicle.', 'inventory-presser' ) ) // Args ); add_action( 'invp_delete_all_data', array( $this, 'delete_option' ) ); }
Expand full source code Collapse full source code View on Github