Try :
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
if(is_user_logged_in()){
unset($fields['billing']['billing_email']);
}
return $fields;
}
Related Posts:
- Get term count on a category page
- Use AJAX in shortcode
- How to get woocommerce inventory status [closed]
- How to add attributes to a shortcode
- How to display random users with avatars
- Apply jquery script to only woocommerce product pages and categories
- How can I add an extra WooCommerce hook
- Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
- Shortcode with custom content attribute?
- display 100 products per page on product category page [closed]
- Passing HTML in WordPress Shortcode arguments
- Adding WooCommerce to a Custom Theme – not working [closed]
- Exclude Empty Child Categories in Menu
- Display a text message if the shortcode is found?
- Override woocommerce wc-class function
- Custom Shortcode, functions PHP WP_Query loop
- Super simple shortcode not working
- WordPress function for 1 to for many
- Pass parameters to function through an action
- Calling a function from anywhere, used in different places
- How to get specified parent page title in my function
- Selective Product Category for Carousel
- Shortcode pagination not advancing
- I want to get product attirbute in the section below
- Having issues with a foreach inside of a shortcode with ACF gallery
- Load Woocommerce and WordPress Functions Outside
- How to get the index number of the posts?
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- Add to cart php not working [closed]
- How to auto refresh when user change postcode
- Create a custom taxonomy that will be used to create and filter markers in a Google Map
- woocommerce change currency per category [closed]
- Add button to kitchen sink toggle
- Redirect to another page using contact form 7? [closed]
- help I changed one currency in woocommerce and everything is ruined [closed]
- Help With Creating Shortcode
- How to override woocommerce.css?
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- Shotcode argument issues
- Shortcode parse error – wrong syntax
- (Woocommerce) Order by price when entering specific category
- Exclude category from shortcode
- get_pages() Returns Only One Item
- Adding an option to a shortcode
- How to use author meta in shortcode?
- Testing for a shortcode using a function. 404 page throwing PHP Notice
- Use a shortcode to display custom meta box contents
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Create a Woocommerce product widget with category filter
- Tracking the number of shortcodes for a list?
- Need a method to prevent WP from adding in between my shortcodes
- Load scripts for do_shortcode( ‘ [ my_shortcode ] ‘ )
- Can I include a custom PHP function in a WordPress function?
- How to create a shortcode out of a php function
- Change WooCommerce add_to_cart Button Text?
- Shortcode of a function
- How to add a shortcode to call a function
- How can I call a PHP function inside a hardcoded shortcode?
- Woocommerce Default sorting product by product type
- Using One Function To Create Two Different Shortcodes
- Is it possible to create a shortcode to link to a specific post/page where the tag is just an attribute?
- How to add custom metakey to shop_order page’s searching function?
- Pagination not working – FrontPage
- Change class woocommerce on function.php
- Show ‘Add to Cart’ on Out of Stock products
- page shows short code not output
- Function to function shortcode help [closed]
- When are the user meta fields created in the database? Admin vs Woo API REST
- price of product can’t return when get data of product in functions.php
- I want to display the sku in the product pages of my EDD website
- is_product_category(‘Services’) not working
- Parent category as WOOCommerce Categories widget title
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- use add_action in a shortcode (gravity form – WordPress)
- Shortcode displaying outside the div [duplicate]
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Shortcode with pagination advancing multiple queries
- Show number of sold products but be first for less than 2
- Get shortcode attribute value to another function
- How to retrieve image IDs from shortcode content?
- Display list of pages that contain a certain string within the slug
- function syntax is off,
- How To Show Shortcodes In WordPress Custom Fields?
- How to display data from custom fields in my custom shortcode?
- Modify function Shortcode_atts
- Shortcode to output get_header not working
- restrict access to specific urls on a specific period of time
- Add title & subtitle to shortcodes
- shortcode inside post called by ID does not render as expected
- trouble with passing class method data to outside function
- Woocommerce – Checkout error message
- add variable to actions/functions across different files (woocommerce)
- How do grab the main loop, with conditions, and output via shortcodes
- Display function from functions.php in tag.php
- multible shortcodes (for differnt values) with one function
- How call WordPress shortcode inside function file
- sort by date in users
- Is it possible to set the first image from a gallery as the product image, rather than the featured image?
- How to make my logged-in user-role shortcode displaying name instead of slug?