• Resolved shimist

    (@shimist)


    After updating to WordPress 6.7, the template translation does not work
    If in WordPress 6.6.2, the template translation file was loaded well

    I use this code in my template to call translation
    please help me
    And edit the code to work in WordPress 6.7

    load_theme_textdomain( 'dp', get_template_directory() . '/languages' );
    $locale = get_locale();
    $locale_file = get_template_directory() . "/languages/$locale.php";
    if ( is_readable( $locale_file ) )
    require_once( $locale_file );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.