コード例 #1
0
function wp_about_author_shortcode()
{
    wp_about_author_display();
}
コード例 #2
0
function insert_wp_about_author($content)
{
    $wp_about_author_settings = array();
    $wp_about_author_settings = get_option('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 = $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 = $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 = $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 = $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 = $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 = $content . wp_about_author_display(true);
                        } else {
                            $content = $content;
                        }
                    }
                }
            }
        }
    }
    return $content;
}