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
- Solution to render Shortcodes in Admin Editor
- How to display custom field in woocommerce orders in admin panel?
- How to create a custom order status in woocommerce!
- Use AJAX in shortcode
- Include PHP file in Content using [shortcode]
- How to show product SKU on product page
- How to get woocommerce inventory status [closed]
- Woocommerce add to simple product attribute programmatically [closed]
- Shortcode producing headers already sent error
- How to add attributes to a shortcode
- How to display random users with avatars
- Enabling shortcodes for custom fields
- Apply jquery script to only woocommerce product pages and categories
- In WooCommerce I need to modify the thankyou.php page [closed]
- How can I add an extra WooCommerce hook
- How to use get_media_embedded_in_content function
- Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
- Shortcode with parameters inside parameters
- Creating a table from shortcode avoiding wpautop for each row
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Stripping shortcode from custom excerpt function
- how to create shortcode in wordpress
- What is wrong with this Shortcode? I get it in a wrong place inside the content
- Display random text from a file with the WP built-in AJAX API
- How to Acheive the custom woocommerce category template
- Set first oembed in post to a global variable or function
- Formatting post content to exclude gallery
- Remove images from get_the_excerpt
- Shortcode with custom content attribute?
- Problem with extract() with custom shortcode
- Shortcode to insert menu in page body?
- Remove product description from product archive page
- Hide some items from Screen options in dashboard for products
- display 100 products per page on product category page [closed]
- Using locate-template & shortcodes doesn’t appear to work
- Displaying a random user with a shortcode
- Passing HTML in WordPress Shortcode arguments
- Adding body class when post contains a specific shortcode
- Adding WooCommerce to a Custom Theme – not working [closed]
- Issue adding text after short description on product pages Woocommerce [closed]
- Exclude Empty Child Categories in Menu
- Function to show only first instance of shortcode
- Display a text message if the shortcode is found?
- Can you use admin pages functionality on the frontend of your site
- change billing and shipping address 1 and 2 field placeholders [closed]
- Creating loop within functions.php
- Override woocommerce wc-class function
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- woocommerce target button with class after ajax update
- creating shortcode to pull json array
- Custom Shortcode, functions PHP WP_Query loop
- Pass Shortcode Attribute to footer Script
- Super simple shortcode not working
- WordPress function for 1 to for many
- Detect Safari desktop browser and include the detection in a shortcode
- Pass parameters to function through an action
- Woocommerce checkout field maxlength, make input number field only (postcode)
- My simple custom shortcode is not longer working (possibly due to upgrade to WordPress 4.4 ?)
- Display gallery on top before content
- change in form-checkout.php by using code in functions.php
- List child pages of specific page using shortcode
- Set quantity of woocommerce product on page visit [closed]
- How to extract the variables out from “add_shortcode” function?
- Display first name of logged in user?
- Product Tags in Add New product as checkbox list [closed]
- Calling a function from anywhere, used in different places
- How to get specified parent page title in my function
- Possible to display shortcode based on the category?
- Shortcode Variations?
- Shortcodes not outputting in correct divs
- shortcode inside post called by ID does not render as expected
- Custom shortcode not being included in content paragraph [duplicate]
- Display post_meta-by_key on product catalogue
- 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
- reusing code in function and running it with loop
- Which template file to edit to edit homepage in Mystile [closed]
- Creating mixture of shortcodes to use in the visual/text editor
- PHP error in shortcode [closed]
- “woocommerce_output_related_products” not working
- multible shortcodes (for differnt values) with one function
- How call WordPress shortcode inside function file
- woocommerce_sort_product_tabs() expects an array
- 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?
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Woocomerce custom add to cart button edit functionality [closed]
- Need help adding currency conversion to this code
- post_content return zero!
- How to make my logged-in user-role shortcode displaying name instead of slug?
- Add class to functions.php custom code to call font awesome icon
- How to Programmatically Replace Characters in WooCommerce Product Slugs?
- Customize Woocommerce Orders and Download Page message using hooks
- Issue with Cart Total Showing Zero in WooCommerce Checkout (Electro Theme)