Inventory_Presser_Map_Widget::__construct()
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-map.php
public function __construct() { parent::__construct( self::ID_BASE, __( 'Map', 'inventory-presser' ), array( 'description' => __( 'Embeds a map pointed at a dealership address.', 'inventory-presser' ), 'show_instance_in_rest' => true, ) ); add_action( 'invp_delete_all_data', array( $this, 'delete_option' ) ); }
Expand full source codeCollapse full source codeView on Github