Change order note label in woocommerce checkout page

For our customization want to change woocmmerce order notes label in checkout page then place the following snippet in functions.php within your theme folder!.

add_filter( 'woocommerce_checkout_fields' , 'change_order_note_label_in_woocommerce_checkout_page' );
function change_order_note_label_in_woocommerce_checkout_page( $fields ) {
     $fields['order']['order_comments']['label']="Special Insructions";
     return $fields;
}

Have any doubt, then comment here!

Change woocmmerce out of stock text in wordpress

For our customization want to change woocommerce Out of stock text to Sold Out then place the following snippet in functions.php within your theme folder!.

add_filter('woocommerce_get_availability', 'change_woocommerce_out_of_stock_text');
function change_woocommerce_out_of_stock_text($availability)
{
	$availability['availability'] = str_ireplace('Out of stock', 'Sold Out', $availability['availability']);
	return $availability;
}

Have any doubt, then comment here!

Remove woocommerce order notes from checkout page

For our customization want to remove woocommerce order notes section from checkout page then place the following snippet in functions.php within your theme folder!.

add_filter( 'woocommerce_checkout_fields' , 'remove_woocommerce_order_notes_from_checkout_page' );
function remove_woocommerce_order_notes_from_checkout_page( $fields ) {
     unset($fields['order']['order_comments']);
     return $fields;
}

Have any doubt, then comment here!

Get particular user meta data by user email address in WordPress

Here is a quick snippet to get particular user meta data by $email_address in WordPress. The following code will print particular user meta data for particular user.

$user = get_user_by( 'email', $email_address );
$user_id=$user->ID;
$key = 'you_key_name';
$single = true;
$meta_value = get_user_meta( $user_id, $key, $single );
echo $meta_value;

Have any doubt, then comment here!

Get all user meta data by user email address in WordPress

Here is a quick snippet to get all user meta data by email address in WordPress. The following code will print all user meta data for given email address in wordpress.

$user = get_user_by( 'email', $email_address );
$user_id=$user->ID;
$all_meta_for_user = get_user_meta( $user_id );
print_r( $all_meta_for_user );

Have any doubt, then comment here!

Remove wocommerce coupon field from woocommerce checkout page

Here is a quick snippet to remove woocommerce coupon field from woocommerce checkout page. When you enable the use of coupons, woocommerce adds the apply coupon form in cart and checkout page. For our customization want to remove woocommerce coupon field from checkout page then place the following snippet in functions.php within your theme folder!.

function hide_coupon_field_on_woocommerce_checkout( $enabled ) {
	if ( is_checkout() ) {
		$enabled = false;
	}
	return $enabled;
}
add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_woocommerce_checkout' );

Have any doubt, then comment here!