manager->get_control( $board_games_setting->id )->choices; return ( array_key_exists( $board_games_input, $choices ) ? $board_games_input : $board_games_setting->default ); } endif; /*Radio Button sanitization*/ function board_games_sanitize_choices( $input, $setting ) { global $wp_customize; $control = $wp_customize->get_control( $setting->id ); if ( array_key_exists( $input, $control->choices ) ) { return $input; } else { return $setting->default; } }