Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Theme Checker Is a Awesome Plugin To Check your Theme.
- So Let Start How To Fit Your Theme With Theme Checker .
- For Comment :::
- ====================
- function theme_queue_js(){
- if ( (!is_admin()) && is_singular() && comments_open() && get_option('thread_comments') )
- wp_enqueue_script( 'comment-reply' );
- }
- add_action('wp_print_scripts', 'theme_queue_js');
- For Date
- =============
- <?php the_date('d-M-Y' ); ?>
- Woocommerce ER Kichu Ki baki Asey Naki Miya VAi :::
- ===================================================
- 1. Just Leave View Cart Ajax Option Just Redirect to Checkout Page .
- add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
- function redirect_to_checkout() {
- global $woocommerce;
- $checkout_url = $woocommerce->cart->get_checkout_url();
- return $checkout_url;
- }
- add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields' );
- Billing Fild Add & Delete:
- =============================
- function custom_wc_checkout_fields( $fields ) {
- $fields['order']['order_comments']['label'] = 'Enter Your Short note For Upcoming Update .';
- $fields['billing']['billing_hotmail'] ['label'] = 'Enter Hotmail Address.';
- unset($fields['billing']['billing_last_name']);
- unset($fields['billing']['billing_state']);
- return $fields;
- }
- https://surpriseazwebservices.com/edit-woocommerce-checkout-fields/
Add Comment
Please, Sign In to add comment