📜  sile logo wordpress 以编程方式 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:02.038000             🧑  作者: Mango

代码示例1
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
if ( has_custom_logo() ) {
        echo '' . get_bloginfo( 'name' ) . '';
} else {
        echo '

'. get_bloginfo( 'name' ) .'

'; }