More localization stuffs
This commit is contained in:
@ -6,6 +6,7 @@ Description: A plugin based on my v2 code, while drastically deviating from the
|
||||
Author: Jerry Wood Jr.
|
||||
Version: 3.6.0
|
||||
Author URI: http://plugish.com
|
||||
Text Domain: cwv3
|
||||
*/
|
||||
require_once dirname( __FILE__ ) . '/inc/api.php';
|
||||
|
||||
@ -22,3 +23,8 @@ if ( is_admin() ){
|
||||
require_once dirname( __FILE__ ) . '/class/main.class.php';
|
||||
}
|
||||
|
||||
add_action( 'plugins_loaded', 'jw_cwv3_load_text_domain' );
|
||||
function jw_cwv3_load_text_domain(){
|
||||
load_plugin_textdomain( 'cwv3', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user