BDHexor

See Creativity , Be Creative .

Jan 11th, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Theme Checker Is a Awesome Plugin To Check your Theme.
  2.  
  3. So Let Start How To Fit Your Theme With Theme Checker .
  4.  
  5.  
  6. For Comment :::
  7. ====================
  8. function theme_queue_js(){
  9. if ( (!is_admin()) && is_singular() && comments_open() && get_option('thread_comments') )
  10. wp_enqueue_script( 'comment-reply' );
  11. }
  12. add_action('wp_print_scripts', 'theme_queue_js');
  13.  
  14. For Date
  15. =============
  16. <?php the_date('d-M-Y' ); ?>
  17.  
  18.  
  19. Woocommerce ER Kichu Ki baki Asey Naki Miya VAi :::
  20. ===================================================
  21.  
  22. 1. Just Leave View Cart Ajax Option Just Redirect to Checkout Page .
  23.  
  24. add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
  25.  
  26. function redirect_to_checkout() {
  27. global $woocommerce;
  28. $checkout_url = $woocommerce->cart->get_checkout_url();
  29. return $checkout_url;
  30. }
  31.  
  32.  
  33. add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields' );
  34.  
  35.  
  36. Billing Fild Add & Delete:
  37. =============================
  38. function custom_wc_checkout_fields( $fields ) {
  39. $fields['order']['order_comments']['label'] = 'Enter Your Short note For Upcoming Update .';
  40.  
  41. $fields['billing']['billing_hotmail'] ['label'] = 'Enter Hotmail Address.';
  42.  
  43. unset($fields['billing']['billing_last_name']);
  44. unset($fields['billing']['billing_state']);
  45.  
  46. return $fields;
  47. }
  48.  
  49. https://surpriseazwebservices.com/edit-woocommerce-checkout-fields/
Add Comment
Please, Sign In to add comment