manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } function canary_led_menu_callback( $control ) { if ( $control->manager->get_setting('site_branding_option')->value() == 'default-menu' ) { return true; } else { return false; } }