language fn added

This commit is contained in:
magepeopleteam 2018-11-01 03:11:12 +00:00
parent b8e38f8243
commit d3fd1b9255
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ require_once(dirname(__FILE__) . "/lib/PHPExcel.php");
require_once(dirname(__FILE__) . "/inc/mep_csv_export.php");
require_once(dirname(__FILE__) . "/inc/mep_user_custom_style.php");
// Language Load
add_action( 'init', 'mep_language_load');
function mep_language_load(){
$plugin_dir = basename(dirname(__FILE__))."/languages/";
load_plugin_textdomain( 'mage-eventpress', false, $plugin_dir );
}
// Class for Linking with Woocommerce with Event Pricing
add_action('plugins_loaded', 'mep_load_wc_class');