load_dependencies(); } /** * Load the required dependencies for this plugin. * * Include the following files that make up the plugin: * * - Scratch_Coupon_Card_Default. * * @since 1.0.0 * @access private */ private function load_dependencies() { /** * The class responsible for defining default value * of the plugin. */ } /** * Activates plugin. * * @since 1.0.0 */ public static function activate() { $settings = array(); $settings['threed_enable_product_tab'] = 'off'; $settings['threed_tab_title'] = '3D model'; $settings['threed_enable_product_icon'] = 'on'; $settings['threed_icon_display'] = 'after-product-title'; $settings['threed_icon'] = plugins_url( 'assets/images/logo.png', THREED_PLUGIN_FILE ); $settings['threed_iframe_width'] = '100%'; $settings['threed_iframe_height'] = '500px'; // add_option leaves all existing settings intact on reactivation. add_option( 'settings-threed-iframe', $settings ); } }