Load plugin textdomain

This commit is contained in:
Jay Wood
2016-09-30 16:01:18 -04:00
parent 2cdae72f65
commit 1d230d3fc2

View File

@ -290,6 +290,8 @@ class ContentWarning_v2 {
*/ */
public function register_frontend_data() { public function register_frontend_data() {
load_plugin_textdomain( 'content-warning-v2', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
// Jquery Cookie // Jquery Cookie
wp_register_script( 'jquery_cookie', $this->url( "js/jquery_cookie{$this->min}.js" ), array( 'jquery' ), '1.4.1', true ); wp_register_script( 'jquery_cookie', $this->url( "js/jquery_cookie{$this->min}.js" ), array( 'jquery' ), '1.4.1', true );