Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp+ theme translate

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' );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #theme #translate
ADD COMMENT
Topic
Name
1+3 =