utema

Untitled

Aug 13th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. // add the language validation file if not english
  2. if ( $cp_options->form_val_lang ) {
  3. $lang_code = strtolower( $cp_options->form_val_lang );
  4. wp_enqueue_script( 'validate-lang', get_template_directory_uri() . "/includes/js/validate/localization/messages_$lang_code.js", array( 'jquery' ), '1.11.0' );
  5. }
Advertisement
Add Comment
Please, Sign In to add comment