Advertisement
Local_Ghost

Make shiping state to select2 widget

Apr 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. function tf_add_select2_js() {
  2.     echo '
  3.         <script>
  4.             (function( $ ){
  5.                 $("#shipping_state").select2();
  6.             })(jQuery);
  7.         </script>
  8.     ';
  9. }
  10. add_action( 'woocommerce_after_checkout_form', 'tf_add_select2_js');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement