function insert_wp_about_author($content)
{
    $wp_about_author_settings = wp_about_author_get_options();
    // Make sure we have defaults
    add_defaults_wp_about_author($wp_about_author_settings);
    if (is_front_page() && isset($wp_about_author_settings['wp_author_display_front']) && $wp_about_author_settings['wp_author_display_front']) {
        $content .= wp_about_author_display();
    } else {
        if (is_archive() && isset($wp_about_author_settings['wp_author_display_archives']) && $wp_about_author_settings['wp_author_display_archives']) {
            $content .= wp_about_author_display();
        } else {
            if (is_search() && isset($wp_about_author_settings['wp_author_display_search']) && $wp_about_author_settings['wp_author_display_search']) {
                $content .= wp_about_author_display();
            } else {
                if (is_page() && isset($wp_about_author_settings['wp_author_display_pages']) && $wp_about_author_settings['wp_author_display_pages']) {
                    $content .= wp_about_author_display();
                } else {
                    if (is_single() && isset($wp_about_author_settings['wp_author_display_posts']) && $wp_about_author_settings['wp_author_display_posts']) {
                        $content .= wp_about_author_display();
                    } else {
                        if (is_feed() && isset($wp_about_author_settings['wp_author_display_feed']) && $wp_about_author_settings['wp_author_display_feed']) {
                            $content .= wp_about_author_display(true);
                        } else {
                            $content = $content;
                        }
                    }
                }
            }
        }
    }
    return $content;
}
function wp_about_author_get_options()
{
    $wp_about_author_settings = get_option('wp_about_author_settings');
    // Make sure we have defaults
    add_defaults_wp_about_author($wp_about_author_settings);
    return wp_parse_args($wp_about_author_settings, $fields);
}