📜  wp+ 主题翻译 - PHP 代码示例

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

代码示例1
function myfirsttheme_setup() {
 
    /**
     * Make theme available for translation.
     * Translations can be placed in the /languages/ directory.
     */
    load_theme_textdomain( 'myfirsttheme', get_template_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'myfirsttheme_setup' );