📜  如何在 wordpress 中制作子主题 - PHP 代码示例

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

代码示例2
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
    wp_enqueue_style( 'child-style', get_stylesheet_uri(),
        array( 'parenthandle' ), 
        wp_get_theme()->get('Version') // this only works if you have Version in the style header
    );
}