function wpcs_app_render() { $app = get_option('wpcs_app'); $apps = wpcs_config('apps'); ?> <select name="wpcs_app" style="width: 300px;"> <option value="">Select an app</option> <?php foreach ($apps as $slug => $name) { ?> <option value="<?php echo $slug; ?> " <?php selected($app, $slug); ?> ><?php echo $name; ?> </option> <?php } ?> </select> <?php }
function wpcs_remove_from_gxmls() { if (is_plugin_active(wpcs_config('gxmls_dep'))) { update_option('wpcs_gxmls_connected', '0'); } }