aavoya_wraqagd()); } /** * Setting initial value(ON) for woocommece toggle button top right of the tab */ if (get_option('wraqwo', null) == null) { update_option('wraqwo', true, false); } /** * Setting initial value(ON) for wordpress toggle button top right of the tab */ if (get_option('wraqwp', null) == null) { update_option('wraqwp', true, false); } } /** * preparing default data */ public function aavoya_wraqagd() { $globaldata['globalbuttonbgcolor'] = sanitize_hex_color('#1e3a8a'); $globaldata['globalbuttontextcolor'] = sanitize_hex_color('#ffffff'); $globaldata['globalborderradiusvalue'] = intval(8); $globaldata['globalpaddingxvalue'] = intval(30); $globaldata['globalpaddingyvalue'] = intval(10); $globaldata['globalbuttonfontsize'] = intval(21); $globaldata['globalbuttontracking'] = intval(6); $globaldata['globalbuttontext'] = sanitize_text_field('Button'); $globaldata['globalbuttoncssclass'] = sanitize_html_class('aavoya-wraq-btn'); return serialize($globaldata); } } $aavoya_initdata_obj = new aavoya_initdata();