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?
- Woocommerce add to simple product attribute programmatically [closed]
- Enabling shortcodes for custom fields
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- how to create shortcode in wordpress
- Display random text from a file with the WP built-in AJAX API
- How to Acheive the custom woocommerce category template
- Formatting post content to exclude gallery
- Remove images from get_the_excerpt
- Problem with extract() with custom shortcode
- Remove product description from product archive page
- Hide some items from Screen options in dashboard for products
- Using locate-template & shortcodes doesn’t appear to work
- Displaying a random user with a shortcode
- Function to show only first instance of shortcode
- Can you use admin pages functionality on the frontend of your site
- Creating loop within functions.php
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- creating shortcode to pull json array
- Pass Shortcode Attribute to footer Script
- Detect Safari desktop browser and include the detection in a shortcode
- 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]
- create shortcode to list users with specific meta key value
- Variable if post is sticky in functions.php
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- Remove the product category module block from the Woocommerce product page
- How can I make a widget shortcode to control all the widgets?
- Custom shortcodes not inserting into visual composer columns
- Setting youtube size in functions.php
- Adding a colorbutton in tinymce dialog with current api
- Passing variable as add_shortcode argument
- Excerpts are not displayed by a shortcode on category pages
- shortcode help require
- Optimizing a WordPress site
- Functions when woocommerce isn’t installed
- wp_nonce_field is breaking form for reasons unknown
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Using multiple line variable inside a function?
- Echoing function into WordPress NextGen gallery
- Output loop to function return?
- How to echo the value of an array element using a function via a shortcode
- Wp-query Order By problem
- How to parse a shortcode within a shortcode?
- Variables not showing in short code
- replace text in Sort Box
- add referrer to woo
- How to include any template using Shortcode fuction?
- How can I pass a shortcode value to the head in wordpress functions.php
- Native gallery custom html output
- Need to convert image url to a Base_64 data url with wordpress function..
- dynamic site link for future migration in echo do_shortcode()
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Shortcode question
- Adding product to WooCommerce cart [closed]
- Modify shortcode to work with custom post types
- shorthand syntax for custom fields
- show all the posts thumbnails
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to hide content on mobile in the functions.php file – woocommerce
- Load templates, pass arguments, and render output from functions.php
- How to add if statement on WordPress shortcode output
- Passing function arguments via a shortcode
- Customizing the wp_video_shortcode output with add_filter
- Hide ‘add to cart’ when certain value in dropdown is selected
- Probleme shortcode with list author
- Remove text after a dot and a colon in Woocommerce product title
- Woocommerce product price change
- Help with with my function for wordpress
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- Problems adding a new field to product in cart
- Shortcode to output category description by passing ID
- Help using ShortCodes to style whole chunks of the post
- Shortcode to insert default text and change one word throughout it?
- Variable function names
- Woocommerce – Switching Price for Category
- add product thumbnail to checkout page only and include variation name
- Shortcode Initialization in a Custom Theme
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Hide disclaimer from summary excerpts
- Function not receiving string from shortcode
- Insert menu into theme location depending on user logged in/out status
- Problem in outputting shortcode
- Problem in shortcode outputting content
- Pull random comment from specific post, display on homepage with shortcode
- Set thumbnail from URL, by grabbing image in functions.php
- Gallery Shortcode Function Help
- Echo custom field value in shortcode function
- Shortcodes not outputting in correct divs
- reusing code in function and running it with loop
- PHP error in shortcode [closed]
- 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?