Last active
September 6, 2017 09:09
-
-
Save MaximeCulea/94fef4ad5ba9338e2586f185e8b6a354 to your computer and use it in GitHub Desktop.
i18n ACF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load the theme textdomain | |
* | |
* @author Maxime CULEA | |
*/ | |
public static function mc_load_theme_textdomain() { | |
load_theme_textdomain( self::textdomain, get_template_directory() . '/languages' ); | |
} | |
add_filter( 'acf/settings/export_textdomain', 'mc_load_theme_textdomain' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment