Setting a theme option to default with a plugin?
-
This code enables and disable the Builder in Themify themes. Is there a way to alter it and create a plugin to disable the builder by default and not allow the user to enable it?
function themify_manage_builder_active($data=array()) { global $ThemifyBuilder; $data = themify_get_data(); $pre = 'setting-page_builder_'; $output = ''; $options = array( array('name' => __('Enable', 'themify'), 'value' => 'enable'), array('name' => __('Disable', 'themify'), 'value' =>'disable') ); $output .= '<p> <span class="label">' . __('Themify Builder:', 'themify') . '</span> <select name="'.$pre.'is_active">'. themify_options_module($options, $pre.'is_active') . ' </select> </p>'; return $output; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Setting a theme option to default with a plugin?’ is closed to new replies.