is it possible to hide certain checkout filed in woo-commerce when user is logged in ? like i have a checkout field of Email address i do not want my user to see this when the user is logged in Your suggestion would be a great help.


Try :

add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );

function custom_override_checkout_fields( $fields ) {
return $fields;

Source : https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.