Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add the language validation file if not english
- if ( $cp_options->form_val_lang ) {
- $lang_code = strtolower( $cp_options->form_val_lang );
- wp_enqueue_script( 'validate-lang', get_template_directory_uri() . "/includes/js/validate/localization/messages_$lang_code.js", array( 'jquery' ), '1.11.0' );
- }
Advertisement
Add Comment
Please, Sign In to add comment