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 ); } endif; /** * Title sanitization. */ if ( ! function_exists( 'blogson_sanitize_title' ) ) : function blogson_sanitize_title( $str ) { return sanitize_title( $str ); } endif;